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.

2 Answers

Precompiled binaries are available at

Try cpdf

cpdf.exe -pages file.pdf

which will print the number of pages to standard output. It should be pretty fast.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.