Beenden
  • Globale Community
    • Sprache:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티

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

Neu hier ,
Aug 30, 2020 Aug 30, 2020

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

2.0K
Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines

correct answers 1 richtige Antwort

Community Expert , Aug 31, 2020 Aug 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

...
Übersetzen
Community Expert ,
Aug 31, 2020 Aug 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.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Neu hier ,
Sep 13, 2020 Sep 13, 2020

Thanks For suggesting and it works thanks for your reply

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Neu hier ,
Feb 15, 2022 Feb 15, 2022
AKTUELL

Amazing resolve, thanks for sharing your code, it works perfectly. ❤️

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines