getImageBlob w/PDF returns zero data?

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
jeffmlevy

getImageBlob w/PDF returns zero data?

Post by jeffmlevy »

$i = new Imagick();
$i->readImage("My2PagePDF.pdf");

$data = $i->getImageBlob();

printf("Length should be greater than zed, but is: %d\n", strlen($data));

results in '0'. What gives?
Post Reply