Windows equivalent for Unix's pdfinfo
14,292
Solution 1
Precompiled binaries are available at http://www.foolabs.com/xpdf/download.html
Solution 2
Try cpdf
cpdf.exe -pages file.pdf
which will print the number of pages to standard output. It should be pretty fast.
Related videos on Youtube
Author by
nish
Updated on September 16, 2022Comments
-
nish over 1 year
Is there a Windows equivalent for Unix's
pdfinfo
? I need to get the page count of a PDF document in PHP. I tried with ImageMagick 'identify' command, but seems it is not very efficient. -
Alexander Gräf almost 3 yearsIt also prints "For non-commercial use only" on the output, which is quite annoying, even if you only want the number of pages.