Skip to main content
Inspiring
May 24, 2016
Answered

JavaScript advance focus to a specific page area

  • May 24, 2016
  • 1 reply
  • 1617 views

Hello,

I'm wanting to advance my page to the next one but with a slight difference than just a simple,

this.pageNum++;

I know it is possible to advance page focus to a specific area on a page with the pre-defined options inside acrobat I was just wondering if it was possible to do it with JavaScript?

I've looked though the api document as well as a good google but I can only find examples of what I already know mentioned above.

I want to advance the page by 1 and set the focus to 50% or more down that page so that you see the second half of the page.

As always;

Any help is much appreciated

Thank you in advance.

This topic has been closed for replies.
Correct answer try67

The best way to do that, IMO, is to create a Named Destination at the location, zoom level, etc. that you want to use and then use this code to go to it (use the actual destination name as the parameter, of course):

this.gotoNamedDest("MyDestination1");

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 24, 2016

The best way to do that, IMO, is to create a Named Destination at the location, zoom level, etc. that you want to use and then use this code to go to it (use the actual destination name as the parameter, of course):

this.gotoNamedDest("MyDestination1");

Inspiring
May 24, 2016

Do I still need a plug-in for creating Named Destinations? Or has that changed, the answers I've found about it are quite old '09 and before.

try67
Community Expert
Community Expert
May 24, 2016

It's a built-in feature of Acrobat (maybe only Acrobat Pro, though).

On Tue, May 24, 2016 at 12:54 PM, alexh90310518 <forums_noreply@adobe.com>