Skip to main content
Participant
Dec 14, 2021 2:05 PM UTC
Answered

PDF JS API - total pages

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 is closed to new replies. Start a new post to keep the conversation going.
    Joel Geraci
    Joel GeraciCorrect answer
    Community Expert
    Dec 14, 2021 7:02 PM UTC

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

    1 reply

    Joel Geraci
    Community Expert
    Joel GeraciCommunity ExpertCorrect answer
    Community Expert
    Dec 14, 2021 7:02 PM UTC

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

    Translate