Skip to content

Instantly share code, notes, and snippets.

@HarshitChhipa
Created November 1, 2023 12:04
Show Gist options
  • Save HarshitChhipa/bb63dae8729a94022817373ae6a8dfe0 to your computer and use it in GitHub Desktop.
Save HarshitChhipa/bb63dae8729a94022817373ae6a8dfe0 to your computer and use it in GitHub Desktop.
Convert a password protected pdf to normal PDF without any online tool and sharing your password with 3rd party.

Install qpdf

brew install qpdf


Run following with your file password and file location

qpdf --decrypt --password="password" dummy_locked_file.pdf dummy_unlocked_file.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment