Hi,
If I run /usr/local/bin/gs -q -dNOPROMPT -sDEVICE=jpeg -r72 -sOutputFile=output.jpg incoming.pdf
I get a jpeg. If I run
convert incoming.pdf output.jpg
I get a the error below. My path to ghostscript is set in the delegates.xml file as /usr/local/bin/gs
**** Warning: An error occurred while reading an XREF table.
**** The file has been damaged. This may have been caused
**** by a problem while converting or transfering the file.
**** Ghostscript will attempt to recover the data.
[ghostscript library] -q -dBATCH -dMaxBitmap=500000000 -dNOPROMPT -dNOPAUSE -dAlignToPixels=0 -dEPSCrop "-sDEVICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g1162x1233" "-r72x72" "-sOutputFile=/tmp/magick-XXqN3YsN" "-f/tmp/magick-XXjQJOGo" "-f/tmp/magick-XXj4gRUZ"ERROR: /typecheck in --known--
Operand stack:
1 1 --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- Kids
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-- --nostringval-- 2 1 2 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- 1 1 1 --nostringval-- %for_pos_int_continue --nostringval--
Dictionary stack:
--dict:1127/1686(ro)(G)-- --dict:0/20(G)-- --dict:107/200(L)-- --dict:107/200(L)-- --dict:104/127(ro)(G)-- --dict:241/347(ro)(G)-- --dict:21/24(L)--
Current allocation mode is local
ESP Ghostscript 815.02: Unrecoverable error, exit code 1
convert: Postscript delegate failed `incoming.pdf'.
convert: missing an image filename `output.jpg'.
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
Any ideas?
Rick