Forum Discussion

michaelsuckert's avatar
michaelsuckert
New Contributor
2 years ago

Count pages of a PDF file

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

  • nativeBasic's avatar
    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 ?

    Hope it helps!