Unable to convert pdf file
Posted: 2009-03-18T14:03:39-07:00
I've been working with my hosting company to get Imagick working to convert PDF files to image (either JPG or PNG, doesn't really matter for my purposes). We installed the latest version of ImageMagick, then after some searching and not finding an up-to-date version of the imagick dll found an older version and got that installed.
The conversion works form the command line, but whenever I try to convert using PHP, I get the error
Fatal error: Uncaught exception 'ImagickException' with message 'Unable to read image'
Imagick->readimage('pdfs/temppdf_.p...')
Can anyone give some insight into what could be causing the problem? I'm able to convert from one image format to another using the same PHP file, but I can't seem to read in PDF files at all.
For some additional info, this is a Windows server running IIS.
The conversion works form the command line, but whenever I try to convert using PHP, I get the error
Fatal error: Uncaught exception 'ImagickException' with message 'Unable to read image'
Imagick->readimage('pdfs/temppdf_.p...')
Can anyone give some insight into what could be causing the problem? I'm able to convert from one image format to another using the same PHP file, but I can't seem to read in PDF files at all.
For some additional info, this is a Windows server running IIS.