Replace this with the full path and filename you want to use for the unprotected PDF file generated from the postscript file by ps2pdf.Ī new, unprotected PDF file is generated and placed in the folder you specified in the command.Įvince is the default PDF file viewer that comes with Ubuntu. Replace this with the full path and filename for your postscript file.įull path and filename for the unprotected PDF file that will be generated. The breakdown of the command is as follows: ps2pdfįull path and filename of the postscript file. Ps2pdf /home/lori/Documents/unsecured.ps /home/lori/Documents/unsecured.pdf To do this, type the following command at the prompt and press Enter. The postscript file is generated and placed in the folder you specified in the command.īefore converting the postscript file back to an unprotected PDF file, you must install the Ghostscript Postscript-to-PDF Converter (ps2pdf). Replace this with the full path and filename you want to use for the unprotected PDF file generated by pdftops. Replace “password” with the password that opens your protected PDF file.įull path and filename for the unprotected PDF file that will be generated. Prompt for the user password to open the protected PDF file. The breakdown of the command is as follows: pdftops Pdftops -upw password /home/lori/Documents/secured.pdf /home/lori/Documents/unsecured.pdf To remove a password from a PDF file, we will use the PDF to PostScript (pdftops) tool and the Ghostscript PostScript-to-PDF Converter to convert the postscript file back to an unprotected PDF file. For more information about each tool, type the command (in parentheses for each tool listed) followed by “–help” (two dashes before help). Xpdf-utils is a package of PDF utilities that includes a PDF to PostScript converter (pdftops), a PDF document information extractor (pdfinfo), a PDF image extractor (pdfimages), a PDF to text converter (pdftotext), and a PDF font analyzer (pdffonts). ![]() Replace this with the full path and filename you want to use for the unprotected PDF file generated by QPDF. Replace the full path and filename with one for your file.įull path and filename for the unprotected PDF file that will be generated. Prompt for the full path and filename of the PDF file from which you want to remove the password. decrypt /home/lori/Documents/secured.pdf NOTE: There are two dashes before “password” on the left side of the equals sign. Enter the password for your file after the equals sign. Prompt for the password to open the protected PDF file. The breakdown of the command is as follows: qpdf Qpdf –password=password –decrypt /home/lori/Documents/secured.pdf /home/lori/Documents/unsecured.pdf If it’s not installed, press Ctrl + Alt + T to open a Terminal window and type the following command at the prompt. If you’re using the latest version of Ubuntu (14.04 as of the writing of this article), QPDF is most likely installed. The tool allows you to encrypt and decrypt, web-optimize, and split and merge PDF files. ![]() ![]() QPDF is a command-line program for Linux that converts from one PDF file to another equivalent PDF file while preserving the content of the file. The unprotected PDF file is generated and saved to the location you specified in the command. Replace the path shown here with the full path and filename you want to use for the unprotected PDF file generated by pdftk. Prompt for the path and file name you want to use for the unprotected PDF file generated by pdftk followed by the full path and filename for the unprotected PDF file that will be generated. Output /home/lori/Documents/unsecured.pdf Replace “password” with the password used to open your file. Prompt for entering the user password for the protected PDF file and the password used to open the file. Replace this with the full path and filename for your password-protected PDF file. The breakdown of the command is as follows: pdftkįull path and filename of the password-protected PDF file. ![]() Pdftk /home/lori/Documents/secured.pdf input_pw password output /home/lori/Documents/unsecured.pdf
0 Comments
Leave a Reply. |