PDF Security: How to Protect Your Documents
Quick Answer
PDF security means four separate things: encrypting the file with an open password, redacting sensitive content so it is genuinely deleted, stripping metadata that travels invisibly with the file, and signing it so tampering shows. Encryption is the easy part. Redaction and hidden data are where documents usually leak.
Protecting a PDF means doing four separate things, and most people only do one. You encrypt the file so it cannot be opened without a password. You redact sensitive content so it is genuinely gone rather than hidden. You strip the metadata that travels with the file whether you know about it or not. And you sign it so any later tampering shows.
Encryption is the bit everyone does, and the maths behind it is sound. The weak points are elsewhere: text left in the file under a black rectangle somebody drew on top of it, and hidden data nobody thought to remove.
What are you actually protecting a PDF from?
- Someone opening a file they should not have. An email sent to the wrong address, a laptop left on a train. This is what encryption solves.
- Someone reading content you meant to hide. Redacted names, salary figures, account numbers. Encryption does nothing here, because the person opening it is allowed to.
- Someone learning things from the file itself. Who wrote it and what software made it. That is metadata, and it survives everything except deliberate removal.
- Someone altering the document after you sent it. Changing a figure in a quote or a date on a contract. That is what signatures are for.
How strong is PDF encryption really?
Modern PDF encryption uses AES, the Advanced Encryption Standard, which NIST published as FIPS 197. It was published on 26 November 2001 and updated on 9 May 2023, and NIST notes that the update makes no technical changes to the algorithm. So when a tool offers you AES-256, the cipher is not the weak link. Your password is. Our guide to password protecting a PDF free walks through the steps.
The caveat is that PDF encryption has not always meant AES. PDFlib's reference table maps it: RC4 at 40 bits for PDF 1.1 to 1.3, RC4 at 128 bits for PDF 1.4 and 1.5, AES-128 from PDF 1.6, and AES-256 from PDF 1.7 Extension Level 3, whose password handling was later deprecated in PDF 2.0. PDFlib marks both RC4 options as weak and says they should not be used.
The IETF banned RC4 from TLS in RFC 7465, saying it "can no longer be seen as providing a sufficient level of security." An older tool can still hand you an RC4 file that looks every bit as protected as a modern one. If your tool lets you choose, take AES-256.
What actually makes a good PDF password?
Length, and almost nothing else. NIST's Special Publication 800-63B, Revision 4 requires passwords used on their own to be at least 15 characters, and says systems should permit at least 64 so nobody has to truncate a passphrase. Two of its rules overturn habits that are still everywhere:
- No composition rules. Systems shall not require mixtures of different character types. Forcing a capital, a digit and a symbol tends to produce Password1! rather than anything strong.
- No routine expiry. Systems shall not require periodic password changes, and should force a change only where there is evidence of compromise.
One thing that guidance does not cover is the PDF case. NIST is writing about logging in to a system, where a server can count wrong guesses and lock the account. A PDF has no such server. Whoever holds the file can try passwords offline, as fast as their hardware allows, with nobody counting. The password is the one dial you control. For a document you would genuinely mind losing, go well past the 15 character floor with a long random passphrase you have not used anywhere else.
Can a PDF password be too long?
Yes. According to PDFlib's table, up to PDF 1.7 passwords were limited to 32 characters and to the Latin-1 character set, so anything past the 32nd character never mattered. PDF 1.7 Extension Level 3 and PDF 2.0 raised the limit to 127 bytes of UTF-8 and allowed Unicode. That is bytes, not characters, so non-Latin passphrases hit it sooner. Choosing AES-256 is what gets you the larger limit.
Why do permissions passwords fail?
PDFs support two different passwords. An open password stops the file being opened at all, and it is backed by real encryption. A permissions password, sometimes called an owner password, leaves the file openable by anyone but marks it as not-for-printing, not-for-copying or not-for-editing.
The qpdf documentation explains why that cannot hold. Any software that can read the encrypted file at all has the encryption key, so "there is fundamentally no way to prevent an application from disregarding the security restrictions on a file." The restrictions are enforced solely by the software, and an open source reader could be trivially modified to ignore them. Never rely on them for anything you would mind losing.
Does protection survive merging, splitting or converting?
Usually not. As the qpdf documentation puts it, in a PDF file only strings and streams are encrypted, and the key is derived from your password. When a tool builds you a new file, whether a merge of two documents or three pages pulled out of one, what comes out is a new document. It has to be encrypted again, deliberately, or it is not encrypted at all.
- Merging. Combine a protected PDF with an unprotected one and the output takes whatever the tool decides, which is often nothing.
- Splitting or extracting pages. Each output is a fresh document, and unless the tool re-applies encryption, none of them carry it.
- Converting to another format. Word, text and image files have no PDF encryption because they are not PDFs.
- Compressing or flattening. These rewrite the file. Whether protection survives depends on the tool, not on the format.
So encrypt last. Do the merging, splitting, compressing and converting first, then apply the password as the final step. Then close the finished file, reopen it, and confirm it still asks for the password.
Can you encrypt a PDF without sharing a password?
Yes. Instead of encrypting to a password, you encrypt to each recipient's certificate, which contains only their public key. As PDFlib's reference on certificate security puts it, certificates contain no confidential information, so they do not require any protection and can freely be distributed. To open the file, a recipient needs the digital ID holding the matching private key.
- No passwords to distribute. Nothing to intercept.
- Different permissions per person. Individual restrictions can be set for each recipient or group, which one shared password cannot express.
- Recipients cannot pass a password on. They could copy their software digital ID, but it reveals their name and could be abused to forge their signature, which is a strong disincentive. Hardware-based digital IDs cannot be copied at all.
The cost is setup. You need each recipient's certificate before you can encrypt anything, and each recipient needs a digital ID, usually protected by its own password or PIN. That suits a fixed group you exchange documents with regularly. For a one-off document to a stranger, a long open password is still the practical answer.
Why does black box redaction leak your text?
Because a black rectangle is a drawing placed on top of the page, and the words are still underneath it in the file.
Courts warn about this explicitly. Guidance from the United States District Court for the Eastern District of California puts it plainly: edits made by graphic and commenting tools which black out, cover over or remove sections of text can still be removed by anyone to reveal the text underneath.
What actually works:
- Use a real redaction function. Tools that mark for redaction and then apply it delete the underlying content rather than covering it. The word to look for is apply, not annotate.
- Or take it out of the digital layer entirely. The same court guidance says that for paper, physically cutting out the text before scanning will always be 100 percent effective. Opaque tape or paper works too, but the court warns that even some black paper may allow some light reflection, so check the scan.
- Verify before sending. Open the finished file, try to select the redacted area, and search the document for a word you removed.
Does cropping a page hide what you cropped out?
No. The cpdf manual describes the crop box as defining to what extent a page is cropped before being displayed or printed, and says it can be set, changed and removed without affecting the underlying media box. Cropping draws a smaller window, and removing the crop box brings everything back. If you need that content gone, redact it.
What is your PDF telling people without you knowing?
More than the page shows, and it travels with the file.
Supriya Adhatarao and Cédric Lauradoux measured how much. In Exploitation and Sanitization of Hidden Data in PDF Files they analysed 39,664 PDFs published by 75 security agencies across 47 countries, and found hidden data exposing authors' names and details of the information system and architecture behind the files. Only 7 of the agencies sanitised even a few of their files before publishing, and the researchers still found sensitive information in 65 percent of those sanitised files. Their conclusion: sanitisation has to remove all the hidden information, not just the data at the surface.
So run your tool's remove hidden information function, then check rather than trust it. Reopen the file and look at the properties and the attachments panel. Where the document is genuinely sensitive, rebuilding beats cleaning: converting or reprinting produces a fresh file that never had the history. Our compression guide covers rebuilding a file. Rebuilding can drop bookmarks and the tagging screen readers rely on, which our PDF accessibility guide covers.
Do digital signatures make a PDF secure?
They solve a different problem. A digital signature does not hide anything. It binds the file to a signer and to its exact contents at the moment of signing, so a later change breaks the signature. That makes signatures the tool for integrity and attribution, not confidentiality.
Can a signed PDF still be altered?
Sometimes, depending on the reader. Researchers at Ruhr University Bochum presented Shadow Attacks at NDSS 2021. Of 29 PDF viewers tested, 16 were vulnerable, Adobe Acrobat and Foxit Reader among them. The attacks change what a signed document shows without breaking its signature, and they abuse only legitimate features of the PDF specification, which the authors note is what makes them hard to mitigate. On anything carrying real money or legal weight, confirm with the sender that the version you hold is the one they signed.
Does a signed PDF still verify in five years?
Not necessarily. A signature is bound to a signing certificate, and certificates expire or get revoked. NIST's SP 800-102, published in September 2009, states that a signed message including the purported signing time "provides no assurance that the private key was used to sign the message at that time unless the accuracy of the time can be trusted," and points to timestamps from a Trusted Timestamp Authority. NIST withdrew it on 1 July 2025, explaining that ANSI X9.95 and ISO/IEC 18014 now carry more relevant guidance. For anything long-lived, ask your signing provider for a trusted timestamp. Our digital signature guide covers how to sign free.
Will quantum computers break PDF protection?
Not the password kind. A password-protected PDF uses AES, a symmetric cipher, and NIST's draft transition plan, NIST IR 8547 (November 2024), says symmetric standards "are less vulnerable to attacks by quantum computers" and that NIST does not expect to need to transition away from them.
Certificate encryption and digital signatures are different. They rely on public key algorithms such as RSA and elliptic curves, and those are the algorithms NIST lists as quantum-vulnerable. The plan sets RSA and ECDSA signatures at 112 bits of security strength to be deprecated after 2030 and disallowed after 2035. It also names the "harvest now, decrypt later" threat: someone collects encrypted data today and decrypts it once quantum technology matures. On 13 August 2024 NIST approved three post-quantum standards, FIPS 203 for key establishment and FIPS 204 and 205 for digital signatures.
Can a PDF Someone Sends You Be Dangerous?
Yes, and old readers are the problem.
CISA maintains the Known Exploited Vulnerabilities catalog, a list of flaws with evidence of active exploitation that US federal agencies must fix by a stated deadline. It includes 24 Adobe Acrobat or Reader vulnerabilities, with CVE years running from 2007 to 2026. One stands out: CVE-2009-3459, a heap-based buffer overflow triggered by a crafted PDF file, was added on 20 May 2026 with a due date of 3 June 2026. A 2009 bug was still being exploited seventeen years later.
The catalog's required action for that entry is to apply the vendor's mitigations, which for a PDF reader means updating it. Keep your reader current, and remember that a PDF arriving password protected says nothing about whether the sender meant you well.
Is it safe to put a PDF into an AI chatbot?
Uploading a PDF to a chatbot is still uploading it to a server, so the same confidentiality questions apply as for any third party. But the PDF can also try to talk to the AI reading it.
In July 2025 Nikkei Asia reported finding hidden prompts in 17 preprints on arXiv, from 14 academic institutions in eight countries, directing AI tools to give the papers good reviews.
This is prompt injection. The UK's National Cyber Security Centre, in a blog post, says current large language models "simply do not enforce a security boundary between instructions and data inside a prompt," that "there's a good chance prompt injection will never be properly mitigated" the way SQL injection was, and that the best we can hope for is reducing the likelihood or impact of attacks. Text hidden by colour or size is still in the text layer, and extracting the text shows it as ordinary sentences, which our PDF to text guide explains.
How should you send a confidential PDF?
Four steps, in this order, because cleaning after encrypting means re-encrypting.
- Redact properly. Real redaction, applied, not a rectangle. Then search the file for a term you removed to confirm it is gone.
- Strip hidden information. Run the sanitise step, then check the file properties and attachments rather than assuming.
- Sign it if authenticity matters. Contracts, quotes, anything the recipient might need to prove came from you unaltered.
- Encrypt with a long open password, as the last step. AES-256, long and unique. For a fixed group you exchange documents with often, certificate encryption avoids sharing a password at all.
All of our PDF tools run locally in your browser, so the files you process with them are not uploaded.
What should you do if a confidential PDF gets out?
Move fast, and in Singapore this may not be a purely internal matter. If the file contained personal data, the PDPA may require you to report it. Under the PDPC's Guide on Managing and Notifying Data Breaches, a breach is notifiable if it involves personal data that regulations prescribe as resulting in significant harm, or if it affects 500 or more individuals even without such data.
Once you determine a breach is notifiable, you must notify the PDPC within 3 calendar days, and affected individuals must also be told where the significant harm threshold is met. The assessment itself has to be reasonable and expeditious: the guide says any unreasonable delay in assessing a data breach will be a breach of the notification obligation, so a slow investigation does not stop the clock. Notifications go through the PDPC's data breach reporting page. Outside Singapore, check your own regime.
What else do people ask about PDF security?
Is a password enough to secure a PDF?
For keeping a document away from casual readers, yes. An open password encrypts the file, and modern PDFs use AES, the standard NIST published as FIPS 197. But a password does nothing about text you thought you had redacted, or metadata sitting in the file. Those are the parts that need cleaning before a document is shared.
Why is drawing a black box over text not real redaction?
Because the text is still in the file underneath. Federal court guidance in the Eastern District of California warns that edits made by graphic and commenting tools which black out or cover over text can still be removed by anyone to reveal the text underneath. Anyone can select it, copy it, or open the file in another program. Use a genuine redaction tool that deletes the content.
What metadata does a PDF store about you?
It can expose authors' names and details of the software and systems that produced it. Researchers who analysed 39,664 PDFs published by security agencies found that kind of hidden data throughout, and still found sensitive information in 65 percent of the files that had been sanitised. None of it is visible on the page, and all of it travels with the file.
What is the difference between an open password and a permissions password?
An open password stops the file being opened at all and is backed by real encryption. A permissions password only asks readers not to print, copy or edit, and most PDF software will honour it while plenty of other software simply ignores it. Treat permissions as a polite request, not a security control.
How do you send a confidential PDF safely?
Clean the file first, then encrypt it. Redact properly rather than covering, remove hidden information and check it is gone, then set a long open password as the last step. For a fixed group you exchange documents with regularly, certificate encryption avoids sharing a password at all.
Sources: linked in the text above. This is general information about document handling, not legal advice. If a filing or disclosure has legal consequences, check the rules that apply to it.