Customer reports and I verified that using -dUseCropBox results in the following output. GPL Ghostscript 8.70 (2009-07-28) 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 1. Page 1 **** Page has no /MediaBox attribute. Using the current page size. Error: /stackunderflow in --run-- Operand stack: --dict:8/8(L)-- 595.0 842.0 3 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa lse 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 % oparray_ pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- Dictionary stack: --dict:1155/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75 /200(L)-- --dict:106/127(ro)(G)-- --dict:285/300(ro)(G)-- --dict:21/25 (L)- - --dict:2/6(L)-- Current allocation mode is local GPL Ghostscript 8.70: Unrecoverable error, exit code 1
Created attachment 5260 [details] bug_690676.pdf File that shows problem. I ran to tiff24nc device and also did -dNOTRANSPARENCY just to make sure the issue was not there. It had no effect.
Created attachment 5264 [details] patch My previous version of get_any_box procedure was broken. It messed up the operand stack when -dUseCropBox was requested but none was present in the file. Unfortunately, it's too late to include the patch into the upcoming release -- v. 8.70. Regression testing shows no differences; it doesn't cover -dUseCropBox option.
The patch has been committed as a rev. 9921.
*** Bug 690684 has been marked as a duplicate of this bug. ***
*** Bug 690507 has been marked as a duplicate of this bug. ***
*** Bug 690892 has been marked as a duplicate of this bug. ***
*** Bug 690899 has been marked as a duplicate of this bug. ***
*** Bug 691169 has been marked as a duplicate of this bug. ***
Changing customer bugs that have been resolved more than a year ago to closed.