Simple pdf to jpg conversion fails
Posted: 2011-04-01T02:36:57-07:00
Hi all,
First of all, I have not that much experience with imagemagick, so maybe the answer to my question is pretty simple. Unfortunately I could not find a good answer on this forum jet and because I am on a tight deadline I hope somebody can help me out quickly.
I have a simple PDF document that has to be converted to a JPG file (or files, if it is a multipage PDF)
A few days ago I executed the following line through a php script and all went well:
This was done with image magick version 6.2 I thought.
Yesterday image magick was updated to it's newest version, 6.6.9 and from that moment the script gives the following error:
Can anyone help me out where the problem might be?
Many thanks,
Joren
First of all, I have not that much experience with imagemagick, so maybe the answer to my question is pretty simple. Unfortunately I could not find a good answer on this forum jet and because I am on a tight deadline I hope somebody can help me out quickly.
I have a simple PDF document that has to be converted to a JPG file (or files, if it is a multipage PDF)
A few days ago I executed the following line through a php script and all went well:
Code: Select all
exec("convert test.pdf test.jpg 2>&1") ;
Yesterday image magick was updated to it's newest version, 6.6.9 and from that moment the script gives the following error:
Code: Select all
Array
(
[0] => CRIT: rangecheck in .setuserparams
[1] => Operand stack:
[2] => --nostringval-- --nostringval-- --nostringval--
[3] => convert: Postscript delegate failed `../../boeken/10/pdf/boekID-10.pdf': @ error/pdf.c/ReadPDFImage/663.
[4] => convert: missing an image filename `../../boeken/10/jpg/boekID-10-%d.jpeg' @ error/convert.c/ConvertImageCommand/3011.
)
Many thanks,
Joren