I installed GraphicsMagick-1.3.6-Q16-windows-dll.exe on Windows XP Professional x64 SP2. When I try and convert a pdf to jpeg I get the error “gm convert: Postscript delegate failed”. EPS, PS, PDF are listed with the “gm convert -list delegates” command. I’ve tried with and without Ghostscript (v8.63) in path. The pdf’s I’m trying to convert can be downloaded from ftp://ftp2.cits.rncan.gc.ca/pub/canmatrix2/250k_pdf/, but it’s also happened with simpler documents.
WORKAROUND: In “GraphicsMagick\config\delegates.mgk” hardcode the path to gswin32c.exe by replacing all occurences of “@PSDelegate@” with “C:\local\gs\current\bin\gswin32c.exe” (change path according to local environment of course). This is enough to let me keep working, but it would be nice to solve the root of the problem so upgrades etc. don’t break.
The key to discovering the workaround was the empty quotes right after ‘gm convert’:
gm convert 094a_03.pdf test.jpg
gm convert: “” -q -dBATCH -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=ppmraw -dTextA
lphaBits=4 -dGraphicsAlphaBits=4 -r72×72 “-sOutputFile=c:\temp\tmp\gme8Jt1t” –
“c:\temp\tmp\gmuFty5i” -c quit.
gm convert: Postscript delegate failed (094a_03.pdf).