Page 1 of 1
convert in windows unable to convert a pdf
Posted: 2011-06-16T16:59:56-07:00
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
Re: convert in windows unable to convert a pdf
Posted: 2011-06-16T17:12:26-07:00
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?
Re: convert in windows unable to convert a pdf
Posted: 2011-06-22T13:36:26-07:00
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...
Re: convert in windows unable to convert a pdf
Posted: 2011-06-22T13:50:53-07:00
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.
Re: convert in windows unable to convert a pdf
Posted: 2011-06-22T16:07:04-07:00
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-
Re: convert in windows unable to convert a pdf
Posted: 2011-06-22T16:21:05-07:00
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.
Re: convert in windows unable to convert a pdf
Posted: 2011-06-22T16:27:35-07:00
by rogerdpack
Ok thanks for your help. Anybody?
Thanks!
-roger-
Re: convert in windows unable to convert a pdf
Posted: 2011-06-29T04:32:57-07:00
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
Re: convert in windows unable to convert a pdf
Posted: 2011-12-06T10:51:20-07:00
by rogerdpack
Ok the "missing an image filename" problem can be solved by installing ghostscript
viewtopic.php?f=3&t=19952&p=78922#p78922