Ghostscript is also another popular utility that helps in removing passwords from a PDF file in Linux. The above command will create a new unencrypted file, which you can open without entering any password. Once installed, decrypt and remove a password from a PDF file using qpdf by running a command in the below syntax: $ qpdf -decrypt. To install qpdf on Linux distros, run: $ sudo apt install qpdf
Qpdf program is also a similar utility that supports the encryption and decryption of a PDF file. You can check out for any discrepancies in a new file by opening both PDFs and comparing them side by side. The above command just removes the password and generates a new PDF file with the same content. To remove the PDF password using pdftk, execute the command in the below syntax: $ pdftk. To install pdftk on Linux distros, run: $ sudo apt install pdftk Pdftk is a very simple Linux utility for manipulating PDF files that also include decrypting the PDF file.