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