Can not convert .pdf to .png (IM6.7.1, win7-64bit, GS9.04)
Posted: 2011-08-25T02:52:46-07:00
Hello, I really like ImageMagic. I don't want a substitute. It's just taking me a while to get things working. Please bare with me.
MY PROBLEM
*****************************************************************
Whilst I can now convert .tif files to .png, when I attempt to run convert 1.pdf -scale 500 11111.png it fails. I get the output as appended below.
MY SYSTEM
*****************************************************************
Windows 7 64bit
GhostScript 9.04 for Windows 64 bit ( http://www.ghostscript.com/download/gsdnld.html )
Version: ImageMagick 6.7.1-10 2011-08-21 Q16
MY COMMAND LINE OUTPUT
*****************************************************************
C:\tmp>convert _a.tif -scale 500 _aaaaa.png
C:\tmp>dir
Directory of C:\dev\ruby\mingle_pic_attacher\tmp
2011/07/06 11:43 AM 19 260 1.pdf
2011/07/06 10:52 AM 15 092 2.pdf
1998/09/09 12:57 AM 706 967 _a.tif
2011/08/25 11:36 AM 82 446 _aaaaa.png
C:\tmp>convert 1.pdf -scale 500 11111.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/michelle/AppData/Local/Temp/magick-6Iz_B1q1--0000001" "-fC:/Users/michelle/AppData/Local/Temp/magick-d8ZljhhW" "-fC:/Users/michelle/AppData/Local/Temp/magick-SSiepmdR" @ error/utility.c/SystemCommand/2094.
Magick: Postscript delegate failed `1.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/664.
Magick: missing an image filename `11111.png' @ error/convert.c/ConvertImageCommand/3015.
C:\tmp>convert 2.pdf -scale 500 22222.png
(get the same error message as above)
*****************************************************************
I am sure I must be doing something stupid here because I am surely not the only one needing to convert .pdf's to another format. Anyone got any ideas where my ignorance lies?
Thank-you in advance, Michelle
MY PROBLEM
*****************************************************************
Whilst I can now convert .tif files to .png, when I attempt to run convert 1.pdf -scale 500 11111.png it fails. I get the output as appended below.
MY SYSTEM
*****************************************************************
Windows 7 64bit
GhostScript 9.04 for Windows 64 bit ( http://www.ghostscript.com/download/gsdnld.html )
Version: ImageMagick 6.7.1-10 2011-08-21 Q16
MY COMMAND LINE OUTPUT
*****************************************************************
C:\tmp>convert _a.tif -scale 500 _aaaaa.png
C:\tmp>dir
Directory of C:\dev\ruby\mingle_pic_attacher\tmp
2011/07/06 11:43 AM 19 260 1.pdf
2011/07/06 10:52 AM 15 092 2.pdf
1998/09/09 12:57 AM 706 967 _a.tif
2011/08/25 11:36 AM 82 446 _aaaaa.png
C:\tmp>convert 1.pdf -scale 500 11111.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/michelle/AppData/Local/Temp/magick-6Iz_B1q1--0000001" "-fC:/Users/michelle/AppData/Local/Temp/magick-d8ZljhhW" "-fC:/Users/michelle/AppData/Local/Temp/magick-SSiepmdR" @ error/utility.c/SystemCommand/2094.
Magick: Postscript delegate failed `1.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/664.
Magick: missing an image filename `11111.png' @ error/convert.c/ConvertImageCommand/3015.
C:\tmp>convert 2.pdf -scale 500 22222.png
(get the same error message as above)
*****************************************************************
I am sure I must be doing something stupid here because I am surely not the only one needing to convert .pdf's to another format. Anyone got any ideas where my ignorance lies?
Thank-you in advance, Michelle