Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Count pages of PDF file

by chrestomanci (Priest)
on Jul 05, 2011 at 20:00 UTC ( #912870=note: print w/ replies, xml ) Need Help??

in reply to Count pages of PDF file

You could install pdftk for your platform and then use:

pdftk <filename> dump_data

It will emit 11 lines of metadata about the file. The last item is the page count.

Comment on Re: Count pages of PDF file
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912870]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-11-27 06:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (719 votes), past polls