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
It would be useful to be able to add margins by scaling down content while preserving the document size.
Unless I missed something, I didn't find a way to achieve that, at least in a simple way.
(I could by running 'pdfcpu poster -u mm "f:A4, margin: 5" a4file.pdf dir', with a 1 page "a4file.pdf", creating a 2 pages file "dir/a4file_page_1.pdf" in which second page has such 5mm margins, but that's not quite simple...)
I have made a quick and dirty test by modifying resize.go as below, but it may not properly work with other stuff like background color, and it's probably not the best way to achieve that.
(It could also be something like an additional "fit" options to pdfcpu crop, resizing and positioning visible content to the new crop size, with or without preserving aspect ratio)
Any comments / suggestions about the way to do this would be appreciated, possibly the occasion for a first contribution on my side.
The text was updated successfully, but these errors were encountered:
Hello,
It would be useful to be able to add margins by scaling down content while preserving the document size.
Unless I missed something, I didn't find a way to achieve that, at least in a simple way.
(I could by running 'pdfcpu poster -u mm "f:A4, margin: 5" a4file.pdf dir', with a 1 page "a4file.pdf", creating a 2 pages file "dir/a4file_page_1.pdf" in which second page has such 5mm margins, but that's not quite simple...)
I have made a quick and dirty test by modifying resize.go as below, but it may not properly work with other stuff like background color, and it's probably not the best way to achieve that.
(It could also be something like an additional "fit" options to pdfcpu crop, resizing and positioning visible content to the new crop size, with or without preserving aspect ratio)
Any comments / suggestions about the way to do this would be appreciated, possibly the occasion for a first contribution on my side.
The text was updated successfully, but these errors were encountered: