Skip to main content
Participant
December 14, 2021
Answered

PDF JS API - total pages

  • December 14, 2021
  • 1 reply
  • 921 views

Hi there,

Is it possible for the JavaScript API to count how many pages has? I can see when each page is viewed but can't see a way of getting the total page count.

Any help is appreciated

Conor

    This topic has been closed for replies.
    Correct answer Joel Geraci

    Use the getMetaData() API to get the number of pages.

    1 reply

    Joel Geraci
    Community Expert
    Joel GeraciCommunity ExpertCorrect answer
    Community Expert
    December 14, 2021

    Use the getMetaData() API to get the number of pages.