There are a few pdf files which can not be converted to jpg. No problem to open them with Acrobat or Preview, though. This line never returns:
Code: Select all
convert -colorspace rgb example.pdf example.jpg
Code: Select all
convert: Postscript delegate failed `example.pdf': No such file or directory @ pdf.c/ReadPDFImage/612.
convert: missing an image filename `example.pdf' @ convert.c/ConvertImageCommand/2766.
Mac OS-X 10.5.6
ImageMagick @6.4.8-9 (graphics, devel)
GPL Ghostscript 8.62 (2008-02-29)
Thanks in advance for any hint!
EDIT:
Meanwhile I've realized there is a newer version of gs. Now there is a more precise error when I try to open the pdf with gs (before that it was showing a "bus error" only):
Code: Select all
gs example.pdf
GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 5.
Page 1
Error: /rangecheck in --.execform1--
Operand stack:
--nostringval-- --dict:6/15(L)-- 2 0.0 3.66643e-06
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 5 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- 120 --nostringval-- 1853 4 11 %oparray_pop --nostringval-- false 1 %stopped_push 1852 4 11 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1144/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:21/40(L)-- --dict:1/1(ro)(G)-- --dict:1/1(ro)(G)-- --dict:2/5(L)-- --dict:3/5(L)-- --dict:1/1(ro)(G)--
Current allocation mode is local
GPL Ghostscript 8.63: Unrecoverable error, exit code 1