Skip to main content
Participant
June 7, 2024
Answered

Navigate to previous pages visited and display it in full page view.

  • June 7, 2024
  • 2 replies
  • 844 views

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?

 

This topic has been closed for replies.
Correct answer try67

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.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 7, 2024

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.

PDF Automation Station
Community Expert
Community Expert
June 7, 2024

Use "Run a JavaScript" as the mouse up button action and enter the following script:

app.goBack();
this.zoomType=zoomtype.fitP;