My pdf file is located here: http://www.stpa.org/200907.pdf ************************************************************* When I try to render my above pdf file, I get the below message: -> 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 What I'm trying to do is convert the above pdf file to an image file using Imagemagick. I received the following error during: > 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. I posted this Imagemagick forum, and was forwarded here instead. Please help. Thank you. Using: 1. Ghostscript 8.64 2. ImageMagick-6.5.4-Q16 3. GSView 4.9
Created attachment 5216 [details] 200907-page2.pdf For future reference, please attach files here, please also state the command line being used so that we can reproduce it. It would be helpful to post the smallest possible file to ease the problem of debugging. Alex, I've attached a reduced file. On a quick inspection the problem seems to be that we are (for reasons unknown to me) reading off the end of the W2 array for the font JWYDDQ+DFNMing-XB-HKP-BF, object [47 0] in this reduced file. The W2 array has 35 entries (0-34) and we are trying to access entry 35, causing a rangecheck error.
The commands ARE stated in my previous post. And sorry, I didnt know you can attach documents in messages.
Fix processing of numeric entry in /W2 array. Old code handled it as a numeric entry in /W array causing misalignment by 2 positions per element. The following patch has been committed as a rev. 9866. http://ghostscript.com/pipermail/gs-cvs/2009-July/009563.html Regression testing shows no differences because our test suite has no files that exercise numeric /W2 elements.The sample file would be a good addition to the test suite.