Add support for cropping using mediaBox, cropBox, bleedBox, trimBox, artBox to all pdfto* utils
Submitted by Jorge Hernández Valiñani
Assigned to poppler-bugs
Description
pdftoppm and pdf-cairo has the -cropbox option in order to "use the crop box rather than media box" of a PDF. How about the trimBox?
Right now, in order to get a PDF cropped using the trimBox, one has first to run pdfinfo -box
on the PDF file, take note of the trimBox size which is in points, and then play with pdftoppm -x ## -y ## -W ## -H ##
, for example, which are in pixels and hence dependent on the X/Y resolution in DPI being used. Pretty convoluted…