Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save everaldomatias/c7c19a0cbc0bef9cf42c60701ab932a2 to your computer and use it in GitHub Desktop.
Save everaldomatias/c7c19a0cbc0bef9cf42c60701ab932a2 to your computer and use it in GitHub Desktop.
Remove PDF Password in Linux using PDF Toolkit (Pdftk)
$ sudo apt install pdftk [On Debian, Ubuntu and Mint]
$ sudo yum install pdftk [On RHEL/CentOS/Fedora and Rocky Linux/AlmaLinux]
$ sudo emerge -a app-text/pdftk [On Gentoo Linux]
$ sudo apk add pdftk [On Alpine Linux]
$ sudo pacman -S pdftk [On Arch Linux]
$ sudo zypper install pdftk [On OpenSUSE]
$ pdftk <path-to-protected-filename>.pdf input_pw <yourpassword> output <path-to-newfilename>.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment