IT/Software/Command Line Applications/PDF Tools: Difference between revisions
Access restrictions were established for this page. If you see this message, you have no access to this page.
Walttheboss (talk | contribs) No edit summary |
Walttheboss (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
Example: Rip out even or odd pages pages | Example: Rip out even or odd pages pages | ||
pdftk name.pdf cat 1-endeven output even.pdf | <code>pdftk name.pdf cat 1-endeven output even.pdf </code> | ||
pdftk name.pdf cat 1-endodd output odd.pdf | <code>pdftk name.pdf cat 1-endodd output odd.pdf </code> | ||
Example: Join the odd and even documents into one. | Example: Join the odd and even documents into one. | ||
pdftk odd-crop.pdf even-crop.pdf shuffle output nameMargins.pdf | <code>pdftk odd-crop.pdf even-crop.pdf shuffle output nameMargins.pdf</code> | ||
====pdfcrop==== | ====pdfcrop==== | ||
Line 17: | Line 17: | ||
Order is left, bottom, right, top | Order is left, bottom, right, top | ||
pdfcrop --margins "30 0 0 0" odd.pdf | <code>pdfcrop --margins "30 0 0 0" odd.pdf </code> | ||
====pdfjam==== | ====pdfjam==== |
Revision as of 06:37, 1 June 2020
Here is a short list of the many many pdf tools in the Linux toolbox
pdftk has been around for ever.
Example: Rip out even or odd pages pages
pdftk name.pdf cat 1-endeven output even.pdf
pdftk name.pdf cat 1-endodd output odd.pdf
Example: Join the odd and even documents into one.
pdftk odd-crop.pdf even-crop.pdf shuffle output nameMargins.pdf
pdfcrop
Example: Here we add a margin of 30 mm to the left
Order is left, bottom, right, top
pdfcrop --margins "30 0 0 0" odd.pdf
pdfjam
Example: Create a pdf for printing with margins of 1 cm on left by pushing document to the right.
pdfjam --twoside 20.pdf --offset '1cm 0cm' --suffix 'offset'Example