Table of Contents
This practical guide walks through how to remove Password Protection from PDF in Ubuntu. It organizes the required steps, settings, and checks so you can complete the task with fewer mistakes.
Portable Document Format (PDF) is one of the most frequently used file formats today. Today's article will discuss some ways to achieve this.
Create an Unsecured PDF File from the Command Line
This method requires the command line utilities Pdftops And Ps2pdf To be installed on the Linux system. If you are running Ubuntu, these utilities are already available, otherwise you can install them by running the following command:
sudo apt-get install xpdf-utils context
Once all the requirements are ready, first execute the pdftops command (syntax below) to convert the password-protected PDF file to a postscript (. ps) file:
pdftops -upw [password] [complete-path-to-pdf-file] [complete-path-to-ps-file]
In the command sample shown above, the -upw Option helps specify the user password for the PDF file. Replace [password], [complete-path-to-pdf-file] and [complete-path-to-ps-file] With the actual password used to open the. pdf file, the path of the pdf file and the location to save the. ps file. In this case, these two files are: '~/Downloads/PDF/secured. pdf' And '~/Downloads/PDF/unsecured. ps' respectively.
When running this command, the postscript file (. ps) will be created at the location specified in the command.

The next step is to convert this postscript file into a. pdf file, which can be easily done using the ps2pdf command. This is the command used in the example case:
ps2pdf ~/Downloads/PDF/unsecured.ps ~/Downloads/PDF/unsecured.pdf
And it creates 'unsecured. pdf' in the same folder.

Now, when you open this newly created PDF file, it will not ask for a password.
Create Insecure PDF Files with Document Viewer
This method focuses on achieving the same using Document Viewer, the default PDF viewer in Ubuntu. First, open the password-protected PDF file in Document Viewer by entering the password:

Once the file is open, open File -> Print and make sure the'Print to file' Option in the 'General' Tab is selected.

Then, ensure the file option contains the output PDF name and location of your choice - this information can be changed by clicking the button where the information is displayed. The example changed the output file name from 'secured. pdf' To 'no-password. pdf'.

Now, simply select the 'Print' Button and the unsecured PDF file will be saved at the location specified in the file option, in this case '~/Documents'.
Try opening a new file now and it will not ask you to enter any password.
Of course, these are not the only two ways to create an unsecured. pdf file from a password-protected file, but the methods discussed in this article will give you an idea of how to achieve the same thing. yourself using the command line as well as the GUI.
Have you ever tried any of these (or any other) methods to create an unsecured. pdf file? How was your experience? Share your thoughts in the comments section below!
FAQ
What do I need before I remove Password Protection from PDF in Ubuntu?
Prepare the required device, software, account access, and any files mentioned in the steps. Back up important data before changing system settings.
Why does the process look different on my device?
Menus and options can vary by operating system, app version, device model, or region. Use the closest matching setting and check the official documentation when needed.
What should I do if a step does not work?
Restart the app or device, confirm permissions and connectivity, update the software, and repeat the step carefully. Avoid unofficial downloads or tools.
Reader Comments 0
Sign in with email or Google to join the discussion.