Count number of pages in PDF file
Posted: 2011-09-19T00:54:47-07:00
Hi,
I am using PHP 5 with Apache 2 in my Windows Vista PC. I have Imagemagick already installed and configured. I want to count the total number of pages in a pdf file using imagick.
Can somebody give me a clear and complete solution to count pages using imagemagick? (i am a beginner)
From googling, I found some examples;
I don't know how to make use of this stuff..
Thanks in advance...
blasteralfred
I am using PHP 5 with Apache 2 in my Windows Vista PC. I have Imagemagick already installed and configured. I want to count the total number of pages in a pdf file using imagick.
Can somebody give me a clear and complete solution to count pages using imagemagick? (i am a beginner)
From googling, I found some examples;
Code: Select all
imagick(identify -format %n testfile.pdf)
Code: Select all
identify -density 12 -format "%p" testfile.pdf
Code: Select all
identify -format %n testfile.pdf
Thanks in advance...
blasteralfred