react-native-pdf-lib icon indicating copy to clipboard operation
react-native-pdf-lib copied to clipboard

is there a way to get the total number of pages in existing pdf document

Open MrFaisal100 opened this issue 6 years ago • 5 comments

is there a way to get the total number of pages in pdf document?

MrFaisal100 avatar Dec 06 '18 16:12 MrFaisal100

@MrFaisal100 this feature doesn't currently exist, though I can see it's value.

I doubt I'll have time to work on this anytime soon. But I'm happy to help anybody that would like to make a PR for this!

Hopding avatar Jan 08 '19 15:01 Hopding

I need this feature too. :D

shubham1164 avatar Jan 11 '19 06:01 shubham1164

We keep track of this as we add pages, but we could pretty easily keep track of this in the library.

thekevinbrown avatar Feb 09 '20 23:02 thekevinbrown

@Hopding Is there a way now to get the total number of pages?

ykolomatski avatar Aug 30 '21 14:08 ykolomatski

No, PRs are welcome though!

thekevinbrown avatar Nov 08 '21 00:11 thekevinbrown