New Tool Radar

AI PDF

How to Remove the Open Password from a PDF You Own with qpdf

Use qpdf to remove the open password from a PDF you own and verify it opens without a prompt.

Schematic with three steps: Decrypt the PDF with qpdf; Open the copy without a password; Check the content is intact.

A PDF with an open password asks for the password every time it is opened, which gets in the way of searching, indexing, and archiving. If you know the password and you own the file, qpdf can remove it, but you should only do this for files you have the right to change.

What you need

  • qpdf installed
  • A PDF with an open password you know
  • The right to remove the password from this file

Step 1: Decrypt the PDF with qpdf

Run qpdf –decrypt –password=YOURPASSWORD input.pdf output.pdf to create a copy without the password. The –password option supplies the password for the run.

Step 2: Open the copy without a password

Open output.pdf and confirm it opens without asking for a password. If it still asks, check that you used the right password.

Step 3: Check the content is intact

Compare the page count and the text of the copy with the original. The decryption should not change the content, but a corrupted file can lose pages.

Worked example: synthetic password removal on a 4-page memo

The table below is a synthetic example. It shows the expected result of removing a password; no file was decrypted.

Check Before After
Opens without password No Yes
Page count 4 4
Text extracts No – locked Yes
File opens in reader After password Directly

Expected result (UNTESTED). the copy opens directly without a password, has the same 4 pages, and its text extracts cleanly, so the password was removed without changing the content. Keep the original until the copy is checked. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • qpdf cannot remove a password you do not know; it cannot crack an unknown password.
  • Only remove a password from a file you own or have permission to change.
  • Removing the password also removes the copy protection, so treat the output as an unprotected file.

Sources

See all