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%.
convert error for PDF files from Adobe web site
- 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
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.
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
No I can't see gs in the line DELEGATES.
Isn't it installed along with ImageMagick? What should I do now?
Isn't it installed along with ImageMagick? What should I do now?
Re: convert error for PDF files from Adobe web site
I downloaded ghostscript for Windows from http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm and installed it but still doesn't list gs. Still some env vars needed to set or something?
Code: Select all
convert -list configure
Re: convert error for PDF files from Adobe web site
Don't know why butFBR wrote:I downloaded ghostscript for Windows from http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm and installed it butstill doesn't list gs. Still some env vars needed to set or something?Code: Select all
convert -list configure
Code: Select all
convert test.pdf test.png
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!