PDF Page Count

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
oddball508

PDF Page Count

Post by oddball508 »

Any one know of a way to return the number of pages in a PDF document? From VBA code would be even better :)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

To get the number of pages in a PDF document, use this command:
  • identify -format %n image.pdf
Post Reply