These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Programatically set document properties

roggeheflin
Registered: Oct 7 2008
Posts: 19
Answered

I am trying to set document properties in VB.NET.

Where is a list of parameters/properties located? "pdf_reference.pdf" from SDK 9 does not appear to have this information.

Currently, i can't find the property/method to set "Initial View" -> "Open to Page" property. Then i will need to set the security settings before saving the document.

How do i set this property and where can i find more information on the interop.acrobat object model?

thank you
-rogge

My Product Information:
Acrobat Standard 9.0, Windows
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
You'll need to do this use the JSObject which is the JavaScript bridge.
There is a sample VB.NET project that comes with the SDK to demonstrate how to use the JSObject. It's called BasicIacJsoVB is included in the SDK download under InterAppCommunicationSupport\VBSamples.

You can ask more detailed questions in the [url=http://www.adobeforums.com/webx/.eed56a0/]Acrobat Developers SDK[/url] forum.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

roggeheflin
Registered: Oct 7 2008
Posts: 19
thank you for your response. But i can't find the properties to set "Open to page". Also, i need to set security so it may look like distiller or live cycle.
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Setting the Document Properties (i.e., Initial View) can be done via batch processing or by adding an "execMenuItem()". Unfortunately there is no simple Javascript to set the Initial View.

Thom Parker has a tutorial on [url=http://www.acrobatusers.com/tutorials/2007/10/apply_security_with_js/]Applying PDF security with Acrobat JavaScript[/url] that you might find useful.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.