Hi,
I have been using ImageMagick for a couple of years now. Happlily converting PDFs to PNGs with no trouble (thanks!) But now I have been supplied a batch of PDFs that wont convert and I cant find out why?!
Here are the details
Version: ImageMagick 6.2.5 02/14/06 Q16 under linux
Command: "convert -verbose "./pdf/4/proofs/letterhead.pdf" "./pdf/4/proofs/mastertest.png" 1>output.txt 2>error.txt"
Error text:
GNU Ghostscript 8.01: Unrecoverable error, exit code 1
convert: Postscript delegate failed `./pdf/4/proofs/letterhead.pdf'.
Output text:
Error: /undefined in --token--
Operand stack:
1 1 --nostringval-- --nostringval-- --nostringval-- 97787 1 0 --nostringval-- Contents --nostringval-- Type Page Parent --nostringval-- BleedBox --nostringval-- TrimBox --nostringval-- Resources --nostringval-- ColorSpace --nostringval-- 9 --dict:9/9(ro)(G)-- --nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- 1 1 0 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1053/1123(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:74/200(L)-- --dict:100/127(ro)(G)-- --dict:230/230(ro)(G)-- --dict:19/24(L)--
Current allocation mode is local
"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g595x843" "-r72x72" "-sOutputFile=/tmp/magick-XXFmLihd" "-f/tmp/magick-XXZZI1ky" "-f./pdf/4/proofs/letterhead.pdf"Start of Image
Define Huffman Table 0x00
0 1 5 1 1 1 1 1
1 0 0 0 0 0 0 0
Define Huffman Table 0x01
0 3 1 1 1 1 1 1
1 1 1 0 0 0 0 0
Define Huffman Table 0x10
0 2 1 3 3 2 4 3
5 5 4 4 0 0 1 125
Define Huffman Table 0x11
0 2 1 2 4 4 3 4
7 5 4 4 0 1 2 119
End Of Image
What is making this latest batch of PDFs fail to convert to PNG files?
Thanks iin advance for your help!
New PDF fails to convert
Re: New PDF fails to convert
Mmm - I think that this may be a ghostscript issue rather than a IM thing. I installed IM and GS on a windows machine and converted the problem PDFs with no errors. I think that GS isnt converting the newer PDFs to PS files.
Can anyone comment on this?
Thanks
Can anyone comment on this?
Thanks
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: New PDF fails to convert
upgrade your GS? Check version numbers between the one that works and the one that doesn't.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/