Skip to main content
Known Participant
October 26, 2021
Answered

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

  • October 26, 2021
  • 3 replies
  • 869 views

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

    This topic is closed to new replies. Start a new post to keep the conversation going.
    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 🙂

    3 replies

    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