Skip to content

Sanitize PDF

A PDF can carry more than its pages: code that runs on open, links that report back when clicked, attached files, the author’s name and the software used. Add a file and you get a table of everything found, with risky items in red. Choose what to strip, and the table gains an After column so you can confirm each item is gone. What you see on each page does not change.

Runs on your device; the file never leaves it.

Step by step

  1. 1Add a PDF and look over “What’s inside”.
  2. 2Scripts, attachments, metadata and thumbnails are selected for removal by default; add web links, comments or form fields if you want those gone too.
  3. 3Click “Clean & download”.
  4. 4Check that the After column shows a tick for each item you stripped.

Common questions

›Why would a PDF contain JavaScript?

Forms use it for calculations, but it can also open web pages, start programs or submit data the moment a file opens. Stripping it leaves a document that simply shows its pages.

›Should I remove web links?

If you didn’t write the file, maybe. A unique link can tell its owner when and where the document was opened. Links that jump to another page inside the PDF are always kept.

›What happens to a signed document?

You get a warning first. Any change, including this cleanup, makes existing digital signatures stop validating, so clean a copy and keep the signed original.

›Are old edits removed as well?

Yes. The cleaned copy is written from scratch, so earlier revisions hidden by incremental saves and objects no longer in use are left behind.

›The tool says my PDF is locked.

If it needs a password to open, remove that with Unlock PDF first. Files that only restrict printing or copying are handled without asking.

Other PDF tools