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

view history

itsmikem
Registered: Jul 14 2009
Posts: 44
Answered

Hi list...

I have a bookmark that executes a menu item: view > go to > previous view.

I'd like to be able to detect if that previous view is a specific page, and then conditionally have something happen if so. Is this possible?

thanks,
- Michael M.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
It's possible in an indirect way. The view history is not accessible to the JavaScript mode. But you could place a JavaScript action on the bookmark that runs after the previous view menu item. The script could detect the current page and react appropiatley.

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]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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