Skip to content

Instantly share code, notes, and snippets.

@maxRN
Last active May 11, 2023 10:53
Show Gist options
  • Save maxRN/be7fbe1cc216711e63d27cab23ec1dbb to your computer and use it in GitHub Desktop.
Save maxRN/be7fbe1cc216711e63d27cab23ec1dbb to your computer and use it in GitHub Desktop.
PDF Cheatsheet

How to remove password from PDF

  • Install qpdf
brew install qpdf
  • To replace contents of PDF run
qpdf --password=YOUR_PASSWORD --decrypt --replace-input input.pdf
  • To output to new file run
qpdf --password=YOUR_PASSWORD --decrypt input.pdf output.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment