abarker / pdfCropMargins

pdfCropMargins -- a program to crop the margins of PDF files
Other
361 stars 35 forks source link

Set custom bounding box #53

Closed metinmayi closed 1 year ago

metinmayi commented 1 year ago

In PDFCrop there was an option to set a custom bounding box: --bbox.

  --bbox "<left> <bottom> <right> <top>"                       ($::opt_bbox)
                      override bounding box found by Ghostscript
                      with origin at the lower left corner

Is there any equivalent with pdfCropMargins?

I checked the documentation but did not find anything.

abarker commented 1 year ago

No, there's currently not an option to do that.

abarker commented 1 year ago

Try the new version 2.0.2. There is a new option --setSamePageSize (-ssp) which takes four floats as an option, to use as the --samePageSize box rather than calculating it. With the cropping percentage set to 100 and no other options it should be equivalent.