I have a PDF file with numerous bookmarks. Some bookmarks go to a Destination Name; others go to a specific page number. For the bookmarks that go to a specific page number, I need to change the Zoom Level to "Inherit Zoom." Any help on how to achieve this, I assume via Javascript, is appreciated.
For custom navigation you'll have to delete the existing bookmark action and use a "Run a JavaScript" action. One way to do this is to set the zoom type to "no vary" and page number, in that order
There is another property, added in Acrobat 7, that provides more flexibility. The "doc.viewState" object. It contains all of the view parameters. Of course they are all undocumented. But you can experiment to get what you need. To see what's in there run this line of code from the console window.
this.veiwState.toSource();
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script