PDF page count
Posted: 2015-09-30T08:12:09-07:00
Dear Gurus,
I'm trying to use the command I've read a few times but cannot get it to work properly. I wish to count the pages in a PDF. I have tried:
identify -format %n image.pdf
However, if it is 2 pages I get 22
If it is 6 I get 666666
If it is 55 I get 555555555555555555555555555555..........(you get the idea!)
Please can I get some help?
Thanks in advance.
I'm trying to use the command I've read a few times but cannot get it to work properly. I wish to count the pages in a PDF. I have tried:
identify -format %n image.pdf
However, if it is 2 pages I get 22
If it is 6 I get 666666
If it is 55 I get 555555555555555555555555555555..........(you get the idea!)
Please can I get some help?
Thanks in advance.