PDF JS API - total pages

New Here ,
Dec 14, 2021 Dec 14, 2021

Copy link to clipboard

Copied

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

Views

65

Likes

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

Community Expert , Dec 14, 2021 Dec 14, 2021

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

Likes

Translate

Translate
Community Expert ,
Dec 14, 2021 Dec 14, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

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