magick wrote:ImageMagick relies on Ghostscript to render PDF and Ghostscript is throwing an exception for the PDF. You can see the command ImageMagick uses by adding -verbose to the command line:
- convert -verbose -colorspace RGB image.pdf image.png
You may need to upgrade your release of Ghostscript. The current GPL release of Ghostscript is 8.63.
I have installed the new version of Ghostscript (8.63) but Getting the same error:
convert -verbose -colorspace RGB chetan1.pdf test.png
"gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=/tmp/magick-XXOXqP8W" "-f/tmp/magick-XXwbyZ3X" "-f/tmp/magick-XXEbplZY"
Error: /typecheck in --run--
Operand stack:
--nostringval-- --dict:8/8(L)-- 1 --dict:8/8(L)-- 1 Rect
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 10 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1153/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:22/40(L)-- --dict:20/23(L)--
Current allocation mode is local
GPL Ghostscript 8.63: Unrecoverable error, exit code 1
convert: Postscript delegate failed `chetan1.pdf': No such file or directory.
convert: missing an image filename `test.png'.
You can reproduce the error with this pdf below:
Sanoj