Scaling and Sizing with PDFJam
pdfjam --suffix converted --papersize '{1920px,1080px}' --scale 0.4 --trim "-6cm -1cm 13cm 8cm" slides.pdf
The --suffix
is instead of giving an output filename, whatever you feed in ends up with the suffix in its filename. This is very handy because I use this command in a script and only need to pass in one variable. The --papersize
isn’t a switch I have used before either but you can set exact sizes for the final output which is nice. The --trim
switch can also be used to set --clip=true
to remove the trimmed space from the document if desired.
I find PDFJam a very handy tool but with not nearly enough blog posts and code snippets around, so I’m dropping my command for future reference (yours as well as mine!).
Thank you for sharing this handy tool. Handling documents such as pdf and spreadsheets are few of the challenging things to do.
It may have been two years in coming, but here is a ‘thank you’ from someone who needed an example of the –papersize option.
make it 5 years after but still a big thank you from another person who needed and example of the papersize option.
Thanks, very useful
Nice tip of negative trim values!
What –clip does after all?
Tried it out, but my problem is that it then introduces white spacing between the pages