Page 1 of 1

Problem reading a PDF

Posted: 2008-03-04T03:25:32-07:00
by MarcinG
Hi!
I'm having a problem reading PDF file with Imagick:

Code: Select all

		$im = new Imagick();
		$im->readImage(APP_PATH .'/public/pdfs/template.pdf');
I get to following message:
Fatal error: Uncaught exception 'ImagickException' with message 'Unable to read the file: ***pdfs/template.pdf' in...
It doesn't happen when Im trying to read jpegs or tiffs.
The file is there, PHP can read it easily.

My OS is Vista 32, I am using PHP 5.2.5 with IM 6.3.9-Q16 ,php_imagick.dll from snaps.php.net, ghostscript 8.61

I am having exactly the same problem with MagickWand.

Please help.

Re: Problem reading a PDF

Posted: 2008-03-05T13:01:42-07:00
by mkoppanen
Is GhostScript installed and is it in the $PATH?

Re: Problem reading a PDF

Posted: 2008-03-06T02:22:54-07:00
by MarcinG
It is.