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

JavaScript navigation through PDF packages

cbaerwaldt
Registered: Nov 11 2005
Posts: 5

I know I can make Bookmarks from the cover page that link to PDFs within the package and use JavaScript to navigate with the bookmarks. Can I write JavaScript without the bookmarks to link to the pages within the package? I would like to enhance the navigation experience by having a descriptive coversheet that links out to the PDFs within the package. (I don’t want to wait for Acro 9.x, is this possible with 8.x?) A bit more info: We are planning to use LS assembler to create the packages.

My Product Information:
Reader 8.1.2, Windows
sstewart
Registered: Apr 18 2006
Posts: 4
Answered by Thom in this thread:

> http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=12688
cbaerwaldt
Registered: Nov 11 2005
Posts: 5
Have you tried it out yet?

If I use this Script:

var oDoc = this.openDataObject("myPDF.pdf");
oDoc.bringToFront();

The PDF does not load to view, but I can query its objects. Technically the PDF is open.

If we take it a step further and try this:

this.exportDataObject({ cName: "myPDF.pdf", nLaunch: 2 });

The PDF will launch, but it launches in a separate PDF is a new window. Any changes made to this PDF are not saved back to package.

Is there any way to navigate through the PDF with JavaScript and have it behave like you clicked on one of the PDF package objects under the cover sheet?

Thank you,
Chris