convert in windows unable to convert a pdf

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rogerdpack
Posts: 7
Joined: 2011-06-16T16:52:23-07:00
Authentication code: 8675308

convert in windows unable to convert a pdf

Post by rogerdpack »

Hello all. My first post here, so please forgive the newbie-ish-ness.

I get the following:
$ wget freeldssheetmusic.org/example.pdf
$ convert.exe -density 125 example.pdf[0] yo.png
...
Unrecoverable error: rangecheck in .setuserparams
...

ver: ImageMagick 6.6.6-3 2010-12-01 Q16

full details: https://gist.github.com/1030606
With any pdf
Any thoughts?
Works fine in linux.
Unable to test it with the mingw builds since it just says "libgomp-1.dll was no found."

Thanks!
-roger
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert in windows unable to convert a pdf

Post by fmw42 »

what happens when you try

convert logo: logo.gif
convert logo: logo.png
convert logo: logo.tif

if those work, then perhaps your ghostscript is corrupted or not installed properly. Or perhaps you need to upgrade IM?
rogerdpack
Posts: 7
Joined: 2011-06-16T16:52:23-07:00
Authentication code: 8675308

Re: convert in windows unable to convert a pdf

Post by rogerdpack »

convert logo: logo.{gif,png,tif} all work well.

Interestingly, with 6.7.0 q16, I now get something different. I get:

c:\tmp>convert example.pdf yo.png
Magick: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=C:/Users/packrd/AppData/Local/Temp/magick-NGihK_Ds--0000001" "-fC:/Users/packrd/AppData/Local/Temp/magick-EFACKh9-" "-fC:/Users/packrd/AppData/Local/Temp/magick-UMZ4Q4EZ" @ error/utility.c/SystemCommand/2094.
Magick: Postscript delegate failed `example.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/663.
Magick: missing an image filename `yo.png' @ error/convert.c/ConvertImageCommand/3015.

(with both 32 and 64 bit builds). Hmm...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert in windows unable to convert a pdf

Post by fmw42 »

looks to me like ghostscript is either not installed or incompatible or installed incorrectly or where IM does not see it.

type

convert -list configure

and look at the line DELEGATES and see if gs is listed

Unfortunately, I am not a Windows user so things may be different on a PC.
rogerdpack
Posts: 7
Joined: 2011-06-16T16:52:23-07:00
Authentication code: 8675308

Re: convert in windows unable to convert a pdf

Post by rogerdpack »

with 6.7.0 it is not listed:
https://gist.github.com/1041483

I can't seem to find executable to re-install and re-test with
https://gist.github.com/1041503 (6.6.6-Q1) but I assume it would have been listed because the output was wildly different then.
Thanks for your help on this.
-roger-
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert in windows unable to convert a pdf

Post by fmw42 »

Sorry, I am not a windows user and don't know how delegates work in windows. Hopefully some kind windows user can jump in here and help you.
rogerdpack
Posts: 7
Joined: 2011-06-16T16:52:23-07:00
Authentication code: 8675308

Re: convert in windows unable to convert a pdf

Post by rogerdpack »

Ok thanks for your help. Anybody?
Thanks!
-roger-
Mohammad_Mansour
Posts: 1
Joined: 2011-06-29T04:26:49-07:00
Authentication code: 8675308

Re: convert in windows unable to convert a pdf

Post by Mohammad_Mansour »

Hi Guys,

I got the same error message while trying to convert a PDF file to PNG or JPEG files

convert: missing an image filename `test.jpg' @ error/convert.c/ConvertImageComm
and/3015.
Any body have a soultion for this issue?

I have the latest version of ImageMacgick software version:ImageMagick 6.7.0-8 2011-06-13 Q16

Regards,
Mohammad
rogerdpack
Posts: 7
Joined: 2011-06-16T16:52:23-07:00
Authentication code: 8675308

Re: convert in windows unable to convert a pdf

Post by rogerdpack »

Ok the "missing an image filename" problem can be solved by installing ghostscript

viewtopic.php?f=3&t=19952&p=78922#p78922
Post Reply