DocPro
EN

Remove hidden data from a PDF

Strip comments, attachments, scripts and old versions

Loading…

About this tool

A PDF can carry more than you see: comments with author names, attached files, filled-in form values, scripts, switched-off layers and older saved versions of the text. This tool lists what it finds in your file and writes a clean copy without the items you choose. It runs on your device, so the file is never uploaded.

You get a count for each kind of hidden data and tick what to remove. Metadata, comments, attachments, form fields, scripts and hidden layers are ticked by default; links and bookmarks are not. Earlier saved versions are always dropped because the new file is written from scratch. Pages that use hidden layers become images, and one option rebuilds every page as an image to also remove text hidden under shapes. DocPro then reopens the new file and checks that the selected items are gone. It is not a certified sanitizer, so look through the result before you share it.

When to use it

How to remove hidden data from a PDF

  1. Choose a PDF and read what was found.
  2. Tick what to remove, or rebuild every page as an image for the strongest result.
  3. Press Remove hidden data and download the clean copy.

Tips and limits

Frequently asked questions

What can it remove?

Metadata, comments and annotations, attached files, form fields and their values, JavaScript and automatic actions, bookmarks, links, hidden layers and earlier saved versions.

How are hidden layers removed?

Pages that use a layer which is switched off are rebuilt as images of what is visible, so the hidden content is no longer in the file. The layer settings are then dropped.

Does it remove text hidden under a white box?

Only if you tick Rebuild every page as an image. Otherwise the text stays in the page. To black out text on purpose, use Redact PDF.

Is my PDF uploaded?

No. The file is read, cleaned and saved in your browser and never leaves your device.

Will the pages look different afterwards?

Not for most files. Pages look the same unless you remove form fields, which also removes the typed values, or rebuild pages as images, which makes the text unselectable.

Does cleaning break a digital signature?

Yes. The file is written again, so a signature on it is no longer valid. Clean a copy and keep the signed original.