Skip to content

Instantly share code, notes, and snippets.

@7h3rAm
Created November 7, 2016 07:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7h3rAm/eb03fbb068a6613649ad9e58eb0560f1 to your computer and use it in GitHub Desktop.
Save 7h3rAm/eb03fbb068a6613649ad9e58eb0560f1 to your computer and use it in GitHub Desktop.
Nifty commands that come handy time and again.
# remove password from a pdf file (if password is already known):
qpdf --decrypt --password=<password> infile outfile.pdf
# extract pages from a pdf file:
pdftk infile cat 3-6 output outfile.pdf
# merge pdfs:
pdftk *.pdf cat output outfile.pdf
# convert jpg to pdf:
convert -compress jpeg *.jpg outfile.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment