PDF page count without exec

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
ivobrabec

PDF page count without exec

Post by ivobrabec »

Hi,
is there some way to get the pdf page count without using exec?
If i do
foreach ( $im->identifyImage() as $k => $v )
{
...
}

this information is not there in the format proprety...
i know the page count can be obtained from identify -format %n imag.pdf... but this works only with exec
Thanks
Ivo
Post Reply