On Feb 2, 11:11 am, Stefano <
cappello.stef...@gmail.com> wrote:
> ...
> what I mean is to instruct GS to get trim box area and only if trim
> box area is not defined use crop area as are for rasterize the PDF.
> ...
My reading of Ghostscript's Resource/Init/
pdf_main.ps procedure
get_any_box is that if you specify both -dUseTrimBox and -dUseCropBox
on the command line, then GS will use the TrimBox if it exists, else
will use the CropBox. If none of the two are present, it will default
to the MediaBox.
I haven't tested it right now, and maybe more important the above
precedence is not explicitly stated so it may change in the future. If
that happens, at least now you know where to patch the code to get the
behavior you want :)