cancel
Showing results for 
Search instead for 
Did you mean: 

Count pages of a PDF file

michaelsuckert
New Contributor

The PDF Snap Pack is now available. But I have not yet found a way to count the pages of a PDF. The background is that I would like to split a PDF automatically and for this I need to know how many pages this PDF has.

Does anyone have any ideas or tips?

Thanks in advance!

1 REPLY 1

nativeBasic
New Contributor III

 

Hello, 

I don't know if this is the best way since I would have expected the number of pages to be returned as one of the properties since it returns the number when you specify the incorrect page range in the PDF splitter snap.

You could try parsing the PDF and count the images ?

nativeBasic_0-1709657207736.png

nativeBasic_1-1709657285711.png

Hope it helps!