Created
January 13, 2020 15:51
-
-
Save eug/86f3e5fca1144ae3d2dee817454e61ae to your computer and use it in GitHub Desktop.
PDF file manipulation via CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install pdftk poppler-utils texlive-extra-utils | |
# Merge | |
pdfunite in-1.pdf in-2.pdf in-n.pdf out-merged.pdf | |
# Rotate | |
# 1-endnorth | |
# 1-endsouth | |
# 1-endeast | |
# 1-endwest | |
# 1-endleft | |
# 1-endright | |
# 1-enddown | |
pdftk in-1.pdf cat 1-endsouth output out-rotated.pdf | |
# Crop | |
# margin: left, top, right, bottom in point units | |
pdfcrop --margins '0 0 -140 -450' in-1.pdf out-cropped.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment