Skip to main content
Known Participant
October 26, 2021
Answered

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

  • October 26, 2021
  • 1 reply
  • 855 views

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

    This topic has been closed for replies.
    Correct answer Raymond Camden

    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 🙂

    1 reply

    Raymond Camden
    Community Manager
    Raymond CamdenCommunity ManagerCorrect answer
    Community Manager
    October 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 🙂

    tracy5DC7Author
    Known Participant
    October 27, 2021

    Thank you! That is what I need.

    Raymond Camden
    Community Manager
    Community Manager
    October 27, 2021

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