Page 1 of 1

convert error for PDF files from Adobe web site

Posted: 2012-03-01T03:36:01-07:00
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%.

Re: convert error for PDF files from Adobe web site

Posted: 2012-03-01T15:33:50-07:00
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.

Re: convert error for PDF files from Adobe web site

Posted: 2012-03-02T02:06:41-07:00
by FBR
No I can't see gs in the line DELEGATES.
Isn't it installed along with ImageMagick? What should I do now?

Re: convert error for PDF files from Adobe web site

Posted: 2012-03-02T02:42:58-07:00
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?

Re: convert error for PDF files from Adobe web site

Posted: 2012-03-02T03:19:05-07:00
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!