Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support question] Using -u and -s, how to force a certain output page size e.g. DIN A4 ? #60

Closed
Wikinaut opened this issue Jun 5, 2024 · 2 comments

Comments

@Wikinaut
Copy link

Wikinaut commented Jun 5, 2024

I have an (8-page-) input pdf, a broschure with non-standard format and use pdfcropmargin -u -s. I want to have the maximum relevant output (i.e. "cropped") to be scaled to the maximum extent and also centered to DIN A4, but don't know, how I have to set up the command line.

Perhaps you can help me, thanks in advance.

Background: I then feed the 8 cropped pages to pdfjam-pocketmod, and this requires the eight input pdf pages to be A4. When the input is not fully filling the A4 format, the pocketmod has too small "pages".

Partially related to #58

@Wikinaut Wikinaut changed the title [Supportquestion] how to force a certain output page size e.g. DIN A4 [Support question] how to force a certain output page size e.g. DIN A4 Jun 5, 2024
@Wikinaut Wikinaut changed the title [Support question] how to force a certain output page size e.g. DIN A4 [Support question] How to force a certain output page size e.g. DIN A4 ? Jun 5, 2024
@Wikinaut Wikinaut changed the title [Support question] How to force a certain output page size e.g. DIN A4 ? [Support question] Using -u and -s, how to force a certain output page size e.g. DIN A4 ? Jun 5, 2024
@Wikinaut
Copy link
Author

Wikinaut commented Jun 5, 2024

Solved. I simply have to run pdfjam.

So the (my) tool chain is:

pdfcropmargin -u -s in.pdf
pdfjam in_cropped.pdf
pdfjam-pocketmod in_cropped-pdfjam.pdf

to get in_cropped-pdfjam_pocketmod.pdf.

This is almost perfect. Thank you for your great tool, I was looking for all the years.

@Wikinaut Wikinaut closed this as completed Jun 5, 2024
@Wikinaut
Copy link
Author

Wikinaut commented Jun 5, 2024

grafik

Extreme output example without margins:. In production I use pdfcropmargin -u -s -a -25 in.pdf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant