Remove hidden information
Find what a PDF holds besides its pages on iPhone and iPad (metadata, attachments, comments, hidden text and layers, scripts, links and more), and remove what you choose with Clean Up Document.
A PDF can carry much more than its pages show: the name of its author, comments and their replies, attached files, text that is drawn invisible, hidden layers, scripts that run when it opens, the data of the app that made it. Before you send a document outside your organization, check what it holds and remove what nobody should see.
Clean Up Document lists what the document holds, and removes what you leave switched on. To remove words or pictures on the pages, redact them; to protect a document from being opened, add a password.
Clean Up Document needs Pro.
Clean up a document
- Open the document, tap the More button (…), then Protect & Redact > Clean Up Document. The app looks through the document.
- The Clean Up sheet lists each kind of item the document holds, with how many there are and where they are: on which page, and what they are (for example the name of an attached file, or Opens a web address for a link).
- Everything is switched on. Switch off what you want to keep.
- Tap Remove. The app says how many items were removed.
When the document holds nothing hidden, the app says Nothing hidden was found.

- A kind of item, with its switch: on, it is removed.
- Remove: removes what is switched on.
The items are gone from the document:

Removing is one step that Undo puts back while the document is open. The app saves your changes as you work; to keep the original as it was, use Save As in the More menu after cleaning up (see Save a PDF).
What the app finds
| Item | What it is | When removed |
|---|---|---|
| Metadata | The title, author, subject, keywords and the other details of the document, and its XMP metadata. | They are cleared. A document that is PDF/A or PDF/UA keeps the line that says so. |
| File attachments | Files attached to the document or to its pages. | The files are taken out. |
| Comments and markup | Notes, highlights, drawings, stamps and the other comments, with their replies. | Removed; links and form fields are not comments and stay. |
| Form fields (burnt into the pages) | The fields of a form and what was typed in them. | The fields are flattened: what they show becomes part of the page and can no longer be changed. |
| Hidden text | Text that is in the file but drawn invisible. The text that text recognition adds to a scan is such text. | Removed: a scanned page can then no longer be searched or copied. |
| Hidden layers | Layers that are turned off, and what they draw. | Removed with their content. |
| Bookmarks | The document's bookmarks. | Removed. |
| Private data, search index and thumbnails | Data kept by the app that made the file, an embedded search index, and page thumbnails. | Removed. |
| Content outside the pages (cropped) | Text and pictures outside the visible part of a cropped page. | Removed for good, as redaction removes content. |
| JavaScript | Scripts that run when the document opens, or when something happens in it. | Removed. |
| Actions (launch, submit, import…) | Actions that open another file or program, send form data, import data or go to another document. | Removed. |
| Web links | Links that open a web address. | Removed. |
| Multimedia and 3D | Sound, video, 3D models and rich media. | Removed. |
| XFA form | An XFA form, whose scripts and data are kept outside the pages. | Removed. |
The sheet lists only the kinds the document has.
Cleaning up rewrites the whole file, so the earlier versions of the document that a PDF can keep inside it are gone too: content you deleted before cannot be recovered from the cleaned file.
Signed documents
Any change to a signed document would make its signatures invalid, so removing hidden information removes the signatures too. When the document is signed, the sheet lists Signatures first, with the other items, and says so under the list:
- leave everything switched on to remove the hidden information and the signatures;
- switch Signatures off to keep them: nothing else can be removed then, so the other switches go off too. Switching another item back on switches Signatures on again.
Remove the hidden information before you sign a document, never after. See Digital signatures.