• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is there a way to get page info in Embedded API?

Community Beginner ,
Oct 26, 2021 Oct 26, 2021

Copy link to clipboard

Copied

From Embedded API, is there a way to get the page info, such as total page count, current page number?

Views

362

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Oct 27, 2021 Oct 27, 2021

Yep, look at the getPDFMetaData API, https://opensource.adobe.com/pdfembed-sdk-docs/howtos_ui.html#viewer-api. 

Also getCurrentPage (bit lower on the page). 

If you need an example let me know (bit busy hence me not just sharing one 🙂

Votes

Translate

Translate
Adobe Employee ,
Oct 27, 2021 Oct 27, 2021

Copy link to clipboard

Copied

Yep, look at the getPDFMetaData API, https://opensource.adobe.com/pdfembed-sdk-docs/howtos_ui.html#viewer-api. 

Also getCurrentPage (bit lower on the page). 

If you need an example let me know (bit busy hence me not just sharing one 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 27, 2021 Oct 27, 2021

Copy link to clipboard

Copied

Thank you! That is what I need.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 27, 2021 Oct 27, 2021

Copy link to clipboard

Copied

LATEST

This isn't the prettiest code, but this CodePen shows both: https://codepen.io/cfjedimaster/pen/NWvgPwy

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources