I would like to create a button which sits within a interactive pdf page that on click will return me to my previously visited page.
As the page will be able to be accessed via numerous other pages the traditional built in Execute menu action is not suitable.
The page which will be displayed (on click of a button) is a series of mattress sizes which i want to be accessable by each bed product in our collection. Once the user has looked at the mattress size guide i want them to be able to return to the bed product that they were looking at originally, without having to then scroll and search.
Is this possible with some javascript trickery?
i found this script:
history.go(-1);
But allas acrobat was not fond of it.
PLEASE HELP!
Thanks in advance.
PDFs are not HTML documents. HTML has no concept of a physical page and PDF only knows a page canvas.
You can access the page number property of the doc object and you can set the page number of the page number of the doc object. The page number in Acrobat JavaScript is zero base, the first page is 0.
To get the page number one uses the following code:
this.pageNum;
To set the page number one uses:
this.pageNum = 0; // goto first page
To goto the next page:
this.pageNum = this.pageNum++ // increment the page number and goto that page
To goto the last page:
this.pageNum = this.numPages--; // decrement the total number of pages
To goto the previous page:
this.pageNum = this.pageNum--; // decrement the page number
Thanks for the advice!
I have already managed to do the above navigation methods quite successfully.
I have also since posting this message found the answer via a web document:
http://cybertext.wordpress.com/2010/07/06/acrobat-back-and-forward-but tons/
It appears that if i tell it to go to previous view it has the same effect as a back button.
Thanks for the speedy response regardless!
Oli
North America
Europe, Middle East and Africa
Asia Pacific