You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pdfCropMargins has a great option --samePageSize which can be used to obtain same page sizes by adding margins. However, it uses the largest bounding box, which covers all pages. However, some documents have different bounding box placements, resulting in uneven margins. Here is the output with options -s -u for such a document:
One can see enormous bottom-left margins on the first page and enormous top-right margins on the second page.
It would be nice to have the option to "center" all the pages while applying --samePageSize.
@abarker Thank you for the update! It works, but it centers the page after making the crops. It results in large margins for the book under discussion:
pdfcropmargins -s -u --centerText book.pdf
Right now I can make the second pass with -u option only
pdfcropmargins -u book_cropped.pdf
Is it possible to center the page while making --samePageSize before calculating the crops? If it has drawbacks, the two-pass method is also great.
It looks like you used --centerTextHoriz since --centerText is supposed to center pages both vertically and horizontally.
You can always just crop more off using the -p, -p4, -a, or -a4 options. With the GUI option -gui you can visually select the values.
There's also a --setSamePageSize option where you can pass in a page size directly, but you'd need to know the numbers. The --samePageSizeOrderStat option might help, but it depends on the document.
pdfCropMargins has a great option
--samePageSize
which can be used to obtain same page sizes by adding margins. However, it uses the largest bounding box, which covers all pages. However, some documents have different bounding box placements, resulting in uneven margins. Here is the output with options-s -u
for such a document:One can see enormous bottom-left margins on the first page and enormous top-right margins on the second page.
It would be nice to have the option to "center" all the pages while applying
--samePageSize
.With this option, pdfCropMargins will be the best choice to answer this question:
https://superuser.com/questions/434063/how-can-i-make-all-pages-in-a-pdf-the-same-size
The text was updated successfully, but these errors were encountered: