When converting the attached PDF to TIFFs via this command, gs -sDEVICE=tiff12nc - sOutputFile=page%d.tiff -r150 -dBATCH -dNOPAUSE thesis.pdf, ghostscript crash with this following error GPL Ghostscript 8.61 (2007-11-21) Copyright (C) 2007 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 60. Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Error: /invalidaccess in --run-- Operand stack: --nostringval-- --dict:8/17(L)-- F26 11.96 --dict:7/7(L)-- --dict:7/7(L)-- 55876 -- dict:7/7(L)-- --dict:8/11(L)-- --dict:8/11(L)-- Private --dict:15/15(L)-- --dict:8/11(L)-- CharStrings --dict:60/60(L)-- -string- 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-- 8 1 60 --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-- --nostringval-- --nostringval-- false 1 %stopped_push -- nostringval-- Dictionary stack: --dict:1145/1684(ro)(G)-- --dict:2/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- -- dict:107/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- -- dict:26/40(L)-- --dict:1145/1684(ro)(G)-- --dict:5/5(L)-- --dict:6/6(ro)(G)-- --dict:75/200(L)- - --dict:1145/1684(ro)(G)-- --dict:5/5(L)-- Current allocation mode is local Last OS error: 2 GPL Ghostscript 8.61: Unrecoverable error, exit code 1 This command was issued on leopard. It also fail in linux ubuntu and redhat.
Created attachment 3744 [details] a PDF to reproduce the ghopstscript crash
Created attachment 3760 [details] 689673b.pdf I've verified that the problem occurs on other platforms (including amd64 on linux) and with gshead. I've attached a simplified version of original file, 689673b.pdf, which contains only the page that produces the error. Both Acrobat and Apple Preview open the file without error.
I get the invalidaccess on object 4017 The PDFDEBUG output shows: %Resolving: [4017 0] /DSTLPE+CMTI12 endobj Error: /invalidaccess in --readonly--
The PDF file embeds a Type 1 font that cannot be read by a PostScript interpreter. The charstring for /j looks as: e/j 160 RD ... The name e resolves to a charstring that was defined earlier and smashes the stack. I don't see any way to wix this quickly. We need to develop an ATM-style interpreter to parse embedded Type 1 fonts.
Created attachment 3769 [details] hack7i.pdf - simplified sample file
Although Type1 font is mangled differently, ATM-style parser should fix both cases. *** This bug has been marked as a duplicate of 689691 ***