Add footer through IAC?

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default Add footer through IAC?

    Hi

    I am writing C# .NET code that uses the Acrobat 7 interapplication communication SDK. Is it possible to add a standard footer to a document in this environment? I don't see anything in the SDK docs. I've seen some references to JavaScript being able to do this, but it's not clear to me whether that's an option since I'm not working in the Acrobat application itself. Thanks

    - rdo
    Ryan_Olson@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Header & Footer Help
      I am trying to add a header to my PDF. When I go to the toolbar - document - and click on add/update/remove, nothing happens. I am not getting a pop...
    2. Datagrid Footer!
      Hi all, I am using a datagrid footer as a container for some data entry controls. Above the datagrid is another data entry point which needs to...
    3. Footer Help
      Hello, I need to some help - I have a website that is being hosted through a company that likes to use its templates - well we decided that we...
    4. Footer PostBack
      Hi Currently I am adding a TextBox to the Footer with the OnItemCreated Event if (e.Item.ItemType = ListItemType.Footer) then Begin dgItem...
    5. Frameless footer
      Hi, How can I keep a table, or more specifically a cell, at the bottom of each page without the use of frames? 100% height does not work. I'm...
  3. #2

    Default Re: Add footer through IAC?

    Yes, you want to use JavaScript via the JSBridge.

    Of course, this assumes you ahve Adobe Acrobat and not Reader.
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: Add footer through IAC?

    Thanks for your reply. I read up on the JSObject stuff and it appears that JSObject may be intended for use though VB only, since it depends on late binding. Is there any way to use it through C# without jumping through a lot of reflection hoops? Programming in VB makes me want to stomp on puppies. Thanks

    - rdo
    Ryan_Olson@adobeforums.com Guest

  5. #4

    Default Re: Add footer through IAC?

    JSObject works great (in Acrobat 8 and later) with C# and other .NET languages.

    There are samples in the SDK - check them out!
    Leonard_Rosenthol@adobeforums.com Guest

  6. #5

    Default Re: Add footer through IAC?

    Since it does depend on late binding, you do need to use Type.InvokeMember with the JSObject in C#, but it does work.
    PDL@adobeforums.com Guest

  7. #6

    Default Re: Add footer through IAC?

    Leonard,

    I downloaded the 8.1 SDK samples (I'm actually using the 7.0.5 SDK -- is that a deal breaker?) but didn't find any C# JSObject samples, only VB. The VB samples don't really help me because they don't have to address late binding.

    PDL,

    I'll look into using Type.InvokeMember as you suggest, but so far I only end up with a Type of __ComObject from PDDoc.GetJSObject(). I'll keep at it (haven't used reflection in C# before).

    Thanks

    - rdo
    Ryan_Olson@adobeforums.com Guest

  8. #7

    Default Re: Add footer through IAC?

    Ryan,

    Here is how you would use InvokeMember with the JSObject in C#:

    object[] param = new object[2];
    param[0] = "My First Parameter";
    param[1] = "My Second Parameter";

    object ret = JSObject.GetType().InvokeMember("Method Name",
    System.Reflection.BindingFlags.InvokeMethod, null, JSObject, param);
    PDL@adobeforums.com Guest

  9. #8

    Default Re: Add footer through IAC?

    Awesome, that was what I needed. I'd erroneously expected to see the JS method names exposed through reflection. Thanks to both of you for your help.

    - rdo
    Ryan_Olson@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139