I'm having troubles with ghostscript 9.10 apparently removing content outside of the crop box (specifically the crop marks I've put there)
This is the PDF before using ghostscript: with_cropbox_before_optimize.pdf
$ pdfinfo -box with_cropbox_before_optimize.pdf
MediaBox: 0.00 0.00 651.97 898.58
CropBox: 28.35 28.35 623.62 870.24
Setting the viewer to display the entire media box shows the crop marks outside of the crop box as expected. (the black border is there to illustrate where the crop box would be)
Then I'm calling:
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -dCompatibilityLevel=1.7 \
-dNOPAUSE -dQUIET -dBATCH -dAutoRotatePages=/None -sOutputFile=<out.pdf> <in.pdf>
Which yields the following file: with_cropbox_after_optimize.pdf
Now the crop marks are missing or at least they are no longer being displayed - the page dimensions are still fine however, so it hasn't cropped it or something...
$ pdfinfo -box with_cropbox_after_optimize.pdf
MediaBox: 0.00 0.00 651.97 898.58
CropBox: 28.35 28.35 623.62 870.24
So: Am I doing it wrong or is this a bug?