Copy link to clipboard
Copied
I needed to create a button in adobe acrobat pro dc to navigate to previous pages visited and display them in full page view.
So at the RichMedia>ButtonProperties>Action window I added PreviousView and then ZoomToPageLevel.
The automation works but unsatisfactorily because it needed 2 or 3 clicks to navigate to each previous pages.
I required it to navigate in 1 click instead of 2 or 3.
I have spent umpteen hours to solve this problem but to no avail.
Can someone please help?
Use "Run a JavaScript" as the mouse up button action and enter the following script:
app.goBack();
this.zoomType=zoomtype.fitP;
The Previous View command doesn't take you to the last page you visited, but to the last view, which can be a different location on the same page. In order for it to work like you described you would need to use a more complex script that will keep track of what page was viewed last (using the PageClose event of each page in the file) as a doc-level variable, and then jump to that page when the "Back" button is clicked.
Copy link to clipboard
Copied
Use "Run a JavaScript" as the mouse up button action and enter the following script:
app.goBack();
this.zoomType=zoomtype.fitP;
Copy link to clipboard
Copied
The Previous View command doesn't take you to the last page you visited, but to the last view, which can be a different location on the same page. In order for it to work like you described you would need to use a more complex script that will keep track of what page was viewed last (using the PageClose event of each page in the file) as a doc-level variable, and then jump to that page when the "Back" button is clicked.