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

pdf navigation

dingerling
Registered: Feb 12 2009
Posts: 2

I have an extensive(>20Gb) information database and use javascript to set global variables (global.lasttacfile=this.path) to enable the user to navigate back to the correct pdf link page. This was built in Acro7 and works well. Using either Acro8 or 9 reader, this fails. I believe that the global variables have been changed to work only within the current document. How can I change my navigation script to provide this capability in Acro 9 reader?

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is tricky stuff. Documents aren't supposed to talk with one another anymore. But, there are a couple of things you can do. First, there are other areas of the DOM that have the ability to save global data. For example app.media. Place a new member on this object and you should be able to see it from scripts in other documents.

Of course, you can always just shut off the "Global Object Security Policy" in the JavaScript preferences.


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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script