convert error for PDF files from Adobe web site

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

convert error for PDF files from Adobe web site

Post by FBR »

Converting of many PDF files fail, especially standard files provided by Adobe. There seems to be a serious issue in the ImageMagick version I use:

ImageMagick-6.7.5-6-Q16-windows-x64-dll.exe on a 64bit Win Server 2003 R2. I also tried the static version and the 32bit version, the error is the same there.

Please, try the standard PDF files from: http://www.adobe.com/devnet/pdf/pdf_reference.html
Also try this one: http://www.engr.uconn.edu/~zshi/course/ ... _guide.pdf

The error is always:

D:\attachments\wiki\TiDocs>convert test.pdf test.png
convert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=C:/DOCUME~1/XXXX/LOCALS~1/Temp/2/magick-baQ_RAQd--0000001" "-fC:/DOCUME~1/XXXX/LOCALS~1/Temp/2/magick-ZGuvB8sY" "-fC:/DOCUME~1/XXXX/LOCALS~1/Temp/2/magick-trOxoAnV"
@ error/utility.c/SystemCommand/1896.
convert.exe: Postscript delegate failed `test.pdf': No such file or directory @
error/pdf.c/ReadPDFImage/668.
convert.exe: missing an image filename `test.png' @ error/convert.c/ConvertImage
Command/3016.


The return value of conver.exe is 1, I checked it with echo %ERRORLEVEL%.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert error for PDF files from Adobe web site

Post by fmw42 »

convert spru198j_programmers_guide.pdf spru198j_programmers_guide.png

works fine for me on IM 6.7.5.7 Q16 Mac OSX Snow Leopard. I get 441 png images.


I suspect it is your ghostscript. Can you confirm that it is properly installed and that IM sees it.

convert -list configure

look at the line starting with DELEGATES and see if gs is listed.
User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

Re: convert error for PDF files from Adobe web site

Post by FBR »

No I can't see gs in the line DELEGATES.
Isn't it installed along with ImageMagick? What should I do now?
User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

Re: convert error for PDF files from Adobe web site

Post by FBR »

I downloaded ghostscript for Windows from http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm and installed it but

Code: Select all

convert -list configure
still doesn't list gs. Still some env vars needed to set or something?
User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

Re: convert error for PDF files from Adobe web site

Post by FBR »

FBR wrote:I downloaded ghostscript for Windows from http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm and installed it but

Code: Select all

convert -list configure
still doesn't list gs. Still some env vars needed to set or something?
Don't know why but

Code: Select all

convert test.pdf test.png
works now, even although gs is not listed. Problem solved.

P.S.: ImageMagick really should give a hint about the necessary installation of Ghostscript for the PDF conversion in its installer. It's very time-consuming to find the reason for the failed convert!
Post Reply