Copy link to clipboard
Copied
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
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
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thanks For suggesting and it works thanks for your reply
Copy link to clipboard
Copied
Amazing resolve, thanks for sharing your code, it works perfectly. ❤️