Skip to content

Instantly share code, notes, and snippets.

@raghur
Created September 11, 2017 08:41
Show Gist options
  • Save raghur/f3eab7297691f2f411eec69b8032daf0 to your computer and use it in GitHub Desktop.
Save raghur/f3eab7297691f2f411eec69b8032daf0 to your computer and use it in GitHub Desktop.
QPDF command to remove file restrictions from password protected pdf file.
# remove pdf file restrictions from password protected pdf file.
qpdf.exe --decrypt --password=verysecret input.pdf output.pdf
@mmsaffari
Copy link

The command changes the password; to actually remove the password, I used this in a PowerShell console.
qpdf.exe --decrypt --password="" input.pdf output.pdf

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