The customer reports and I've verified that running pdfopt with the attached file results in an error. The customer reported this with gs8.52, but gs8.62 and head (r8825) also fail. The command line I'm using: bin/gs -- lib/pdfopt.ps ./Newborn_Nutrition.pdf test.pdf The error message: Copyright (C) 2008 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Read objects, t = 7 Replaced references, t = 7 24 objects total Propagated attributes, t = 8 [[14]] Identified Catalog, t = 8 [15 21 16 18] Identified first page, t = 8 [[1 10 2 3]] [] Identified other pages, t = 8 [4 5 6 7 8 9 11 12 13 17 19 20 22] Identified non-pages, t = 9 Assigned objects #s, t = 9 Wrote Catalog, t = 9 Wrote first page, t = 12 Wrote other pages, t = 15 Wrote shared objects, t = 15 **** Warning: wrong generation: 9 1, xref gen#: 0 **** Warning: wrong generation: 13 1, xref gen#: 0 **** Warning: wrong generation: 20 1, xref gen#: 0 **** Warning: wrong generation: 22 1, xref gen#: 0 Error: /undefined in --get-- Operand stack: --nostringval-- FirstPageXrefLength --nostringval-- --dict:9/9(ro)(G)-- filetype 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 1771 1 3 %oparray_pop -- nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval-- -- nostringval-- --nostringval-- --nostringval-- --nostringval-- --dict:13/14(L)-- -- nostringval-- 7 %dict_continue --nostringval-- --nostringval-- Dictionary stack: --dict:1113/1684(ro)(G)-- --dict:1/20(G)-- --dict:109/200(L)-- --dict:76/200(G)-- -- dict:274/300(ro)(G)-- --dict:18/25(L)-- --dict:48/80(L)-- Current allocation mode is local Last OS error: 2 Current file position is 36439 GPL Ghostscript SVN PRE-RELEASE 8.63: Unrecoverable error, exit code 1 Note that other PDF files work, so it's not a fundamental problem with pdfopt.ps.
Created attachment 4201 [details] Newborn_Nutrition.pdf
*** Bug 689958 has been marked as a duplicate of this bug. ***
I cannot reproduce this on HEAD, 32-bit Windows and 32-bit Mac OS X. Perhaps, it's 64-bit issue.
I get the wrong generation number warnings under Windows, but not the undefined in 'get', the resulting file seems OK. Unfortunately I have neither a Mac nor a 64-bit OS to try this on.
Sorry, my fault, works with head but broken with 8.62. I'll let the customer know.