Convert works for most of my other pdf files, except for a few, like this one.
> convert 200907.pdf 2009.jpg
Error: /rangecheck in --get--
Operand stack:
--nostringval-- --dict:11/20(L)-- C2_0 1 --dict:6/6(L)-- --dict:6/6(L)-- JWYDDQ+DFNMing-XB-HKP-BF --dict:11/12(ro)(G)-- --nostringval-- --dict:9/9(L)-- --dict:9/9(L)-- --dict:20/22(L)-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- false --nostringval-- --nostringval-- --nostringval-- 35
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 3 1 44 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- 36 1 37 --nostringval-- %for_pos_int_continue
Dictionary stack:
--dict:1156/1684(ro)(G)-- --dict:1/20(G)-- --dict:74/200(L)-- --dict:74/200(L)-- --dict:106/127(ro)(G)-- --dict:278/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:22/40(L)-- --dict:14/20(L)-- --dict:7/7(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.64: Unrecoverable error, exit code 1
convert: Postscript delegate failed '200907.pdf': No such file or directory @ pdf.c/ReadPDFImage/611.
convert: missing an image filename '2009.jpg' @ convert.c/ConvertImageCommand/2772.
It works for the first page (convert 200907.pdf[0] 2009.pdf works), but for page 2 onwards, it gives the above error.
What is wrong? Did I miss an installation?
Installed:
1. Ghostscript 8.64
2. ImageMagick-6.5.4-Q16
3. GSView 4.9
My pdf file: 200907.pdf (Chinese characters)
I tried this with ImageMagick-6.4.2-Q16, and the results are the same.
Convert PDF to Image Error
Re: Convert PDF to Image Error
Post a bug to the Ghostscript mailing list. ImageMagick utilizes Ghostscript as a delegate program to render PDF. If we try your PDF directly from the command line with Ghostscript it returns an exception:
- -> gs 200907.pdf
GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 44.
Page 1
Error: /unknownerror in --run--
Operand stack:
--nostringval-- --dict:11/20(L)-- 76.294 512.955
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 44 --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--
Dictionary stack:
--dict:1145/1684(ro)(G)-- --dict:1/20(G)-- --dict:74/200(L)-- --dict:74/200(L)-- --dict:106/127(ro)(G)-- --dict:278/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:22/40(L)-- --dict:9/13(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.64: Unrecoverable error, exit code 1