Can I convert a password-protected PDF, or one that blocks copying?

By the Osmanth team at Osmanth Docs · Published 2026-10-19

It depends on which password the PDF has. A PDF that asks for a password just to open is refused, with a message to remove the password first. A PDF that opens freely but blocks copying or printing was accepted. On 2026-10-19 we sent three test files to PDF to Text. The plain file and the copy-blocked file gave identical text.

What did we test?

In our test we made three one-page PDFs with the same invented text, using the open-source ReportLab library. The first is plain. The second has an owner password and an empty open password, with copying, modifying and annotating switched off. It opens in any viewer without asking for anything. The third needs a password to open. We checked on our machine that the first two open and that the third gives an "incorrect password" error. Then we uploaded all three to PDF to Text on osmanthdocs.com.

File What the site did
Plain Converted. Labelled "Looks good". One heading found
Owner password only, copying blocked Converted. Labelled "Looks good". The text was identical to the plain file
Password needed to open Refused before any processing, with the message "This PDF is password-protected. Remove the password and try again." The upload was answered with an error, not a result

What are the two kinds of PDF password?

A PDF can carry two passwords. The Datalogics knowledge base describes the user password as the one that controls opening the document, and the owner password as the one that controls operations inside it, such as printing, copying and editing. The qpdf manual adds that a file with an empty user password is common: it opens freely and still carries restrictions. Those restrictions are stored as permission bits in the file, covering printing, modifying, extracting text and graphics, and adding annotations.

Only the first kind keeps a reader out. The qpdf manual says that the restrictions on a PDF are enforced solely by the software that reads it, and that any program able to decrypt the file holds the key. That fits what we saw: the copy-blocked file was read like any other.

What should I do with a PDF that needs a password?

  1. Open the PDF in a program that accepts the password, and save or export a copy that has no password. The menu names differ from program to program, so check the help of the program you use.
  2. If you are comfortable with a command line, the qpdf manual documents --password= to supply the password and --decrypt to write a file without encryption. We read this in the manual and did not run qpdf ourselves.
  3. Upload the copy.

We did try one shortcut, opening the file with its password in a Python library and saving a copy, and the saved copy was still password-protected. So a saved copy is not always unlocked. Open the copy once without the password to be sure before you upload it.

Does the copy-blocked file mean I may convert it?

Not necessarily. The tool did not stop at the restriction, but a blocked-copy flag expresses a choice by whoever made the file. Convert only files you have the right to use. The qpdf manual says its decrypt option is not meant for getting around copyright or other restrictions.

What about merging and splitting?

The Merge PDF and Split PDF tool pages say that password-protected PDFs cannot be merged or split, and that you must remove the password first. We read those pages and did not test that case here. For how those tools handle your file, see is it safe to merge PDFs online and send only some pages of a PDF.

What are the limits?

This is three tiny files made by one library, so it shows how the site behaved on 2026-10-19 and not every way a PDF can be protected. We did not test newer encryption types, files with a certificate-based lock, or a PDF with a very long password. If a protected file is also a scan, it needs OCR after the password is removed; see how to extract text from a scanned PDF.

Your PDF is uploaded to our servers, processed with open-source software and deleted when processing finishes. The results stay for 60 minutes.

Sources

  1. qpdf manual: Encryption (no date shown, chapter last reviewed 2022 according to the page, checked 2026-10-19)
  2. qpdf manual: Command-line options (no version shown for these options, checked 2026-10-19)
  3. Datalogics knowledge base: the difference between owner and user passwords in a PDF (dated 17 September 2025, checked 2026-10-19)

More guides