Adding the -dUseCropBox option to the GS command line produce the error: Error: /stackunderflow in --index-- on pdf_main.ps line 1417: 3 index /Rotate pget not { 0 } if 90 idiv 1 and 0 ne { exch } if I think the problem comes from the new function /get_any_box When there is no /CropBox defined in the PDF /get_any_box { % <pagedict> get_any_box <box name> <box> ...... dup type /arraytype ne { //systemdict /UseCropBox .knownget dup { and } if { /CropBox pget { /CropBox exch } if } if } if ..... Should be ..... dup type /arraytype ne { //systemdict /UseCropBox .knownget dup { and } if { dup /CropBox pget { exch pop /CropBox exch } if } if } if ..... The same correction should be made to TrimBox. Best Regards Nikolai Tasev
*** This bug has been marked as a duplicate of 690676 ***