Using -density causes failure
Posted: 2010-03-08T17:55:31-07:00
I've read some of the other posts with this error but can not figure out a solution.
I'm trying to convert a specific PDF to jpg using the following:
/usr/local/ImageMagick/bin/convert -density 400 -resize 25% -quality 92 ift.pdf ift.jpg
The result is:
convert: Postscript delegate failed `ift.pdf': No such file or directory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `ift.jpg' @ convert.c/ConvertImageCommand/2822.
I use this same command for all other pdf's and it works fine. If I drop "-density 400" with this file then it will create jpg's. I have gone through each page with ghostscript and each page renders ok:
Page 1
%%BoundingBox: 0 0 612 792
%%HiResBoundingBox: 0.000000 0.000000 611.999981 791.999976
>>showpage, press <return> to continue<<
Page 2
%%BoundingBox: 36 21 577 636
%%HiResBoundingBox: 36.575999 21.383999 576.377982 635.327981
>>showpage, press <return> to continue<<
etc... (all pages are successful)
My software:
Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
ImageMagick 6.0.7 07/27/08 Q16 http://www.imagemagick.org
GPL Ghostscript 8.70 (2009-07-31)
Again this happens with this PDF only (others are fine). I'd post a link to the PDF, but it has confidential information in it....
Any ideas to try?
I'm trying to convert a specific PDF to jpg using the following:
/usr/local/ImageMagick/bin/convert -density 400 -resize 25% -quality 92 ift.pdf ift.jpg
The result is:
convert: Postscript delegate failed `ift.pdf': No such file or directory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `ift.jpg' @ convert.c/ConvertImageCommand/2822.
I use this same command for all other pdf's and it works fine. If I drop "-density 400" with this file then it will create jpg's. I have gone through each page with ghostscript and each page renders ok:
Page 1
%%BoundingBox: 0 0 612 792
%%HiResBoundingBox: 0.000000 0.000000 611.999981 791.999976
>>showpage, press <return> to continue<<
Page 2
%%BoundingBox: 36 21 577 636
%%HiResBoundingBox: 36.575999 21.383999 576.377982 635.327981
>>showpage, press <return> to continue<<
etc... (all pages are successful)
My software:
Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
ImageMagick 6.0.7 07/27/08 Q16 http://www.imagemagick.org
GPL Ghostscript 8.70 (2009-07-31)
Again this happens with this PDF only (others are fine). I'd post a link to the PDF, but it has confidential information in it....
Any ideas to try?