Skip to content

Instantly share code, notes, and snippets.

@maticrivo
Forked from amirnissim/qpdf.sh
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maticrivo/f5f05bd9e93d3d2c0723 to your computer and use it in GitHub Desktop.
Save maticrivo/f5f05bd9e93d3d2c0723 to your computer and use it in GitHub Desktop.
brew install qpdf
# first decrypt
qpdf --decrypt --password=mypass <FILE_NAME> dec-<FILE_NAME>.pdf
# merge
qpdf --empty --pages dec*.pdf -- all.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment