Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Ryan_Olson@adobeforums.com #1
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
-
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... -
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... -
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... -
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... -
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... -
Leonard_Rosenthol@adobeforums.com #2
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
-
Ryan_Olson@adobeforums.com #3
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
-
Leonard_Rosenthol@adobeforums.com #4
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
-
PDL@adobeforums.com #5
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
-
Ryan_Olson@adobeforums.com #6
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
-
PDL@adobeforums.com #7
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
-
Ryan_Olson@adobeforums.com #8
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



Reply With Quote

