Skip to main content
Participating Frequently
August 30, 2020
Answered

How to create web link to open specific page in pdf using adobe view sdk

Iam using dropbox link as url to open documnet in adobe view sdk but the problem is this that my file is too big and i want create web links in which on clicking them open speicific page in pdf. like for a book the web link is unit 1 , unit 2 in which on clicking unit 2 the pdf will open in adobe view sdk to unit 2 page. Please help i am beginner in using adobe view sdk

This topic is closed to new replies. Start a new post to keep the conversation going.
Joel Geraci
Joel GeraciCorrect answer
Community Expert
August 31, 2020

There is no direct way to open a PDF to a specific page using Embed API using parameters in the object. Instead, you need to load the file as normal and then listen for the "PDF_VIEWER_OPEN" event. At that point, you know the viewer APIs are available to execute your commands. You then use goToLocation and pass in the page number you want. You can see a working example at this CodePen. In my example, the URL has a page parameter at the end. This parameter is then used by the code to immediately go to page 4 rather than display page 1.

3 replies

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
August 31, 2020

There is no direct way to open a PDF to a specific page using Embed API using parameters in the object. Instead, you need to load the file as normal and then listen for the "PDF_VIEWER_OPEN" event. At that point, you know the viewer APIs are available to execute your commands. You then use goToLocation and pass in the page number you want. You can see a working example at this CodePen. In my example, the URL has a page parameter at the end. This parameter is then used by the code to immediately go to page 4 rather than display page 1.

Translate
Participating Frequently
September 14, 2020

Thanks For suggesting and it works thanks for your reply

Translate