Check PDF metadata and hidden content before sharing

25 November 2025

A stack of paper and a spiral notebook sit beside a cup of coffee.
Illustrative photograph. Cropped and resized. Photo: “Top Workspace Office” — Artsy Crafty / NegativeSpace. · CC0 1.0

Before sharing a PDF, inspect the information it carries beyond the visible page: document properties, comments, embedded files and any hidden content relevant to its construction. Decide what the recipient needs, remove the rest through a controlled workflow, and inspect the saved output again. Preserve useful titles, language information and accessibility structure deliberately; indiscriminate cleanup can damage the document while still missing a disclosure.

Related articles

What can a recipient learn beyond the visible page?

The decision to make

The question is what a recipient could obtain from the actual file in addition to its ordinary page display. An internal author name, a draft comment or an embedded source file may be inappropriate for an external release even when the visible report is ready.

Adobe's sanitisation documentation identifies metadata, comments and hidden layers among the information that may remain in a PDF. It offers removal and selective-removal workflows in Acrobat Pro. That documentation describes a capability; the organisation must still inspect its own input and output.

Scope and assumptions

Not every PDF contains every hidden-information category. This guide concerns discovering and cleaning the structures relevant to a particular release. Removing visible confidential text is a related redaction task, and deciding what records must be retained is a separate responsibility.

The worked example uses a synthetic local file and named libraries. It does not establish a commercial editor's behaviour, claim ArkePDF sanitisation support or guarantee that every possible embedded object has been removed.

Inventory likely disclosure surfaces

Comments, attachments and revision artefacts

Start with how the PDF was made. A report exported from a document editor, a scanned archive and a collaborative review file have different inspection priorities. Ask the author which applications, conversions and review steps were involved, then verify the resulting structures rather than relying entirely on that recollection.

Build a release inventory:

SurfaceQuestion before sharingPossible decision
Title, author, subject and keywordsDo these identify an internal person or draft purpose?Replace or remove selected values
Comments and annotationsAre internal deliberations included?Remove after resolving the review
Embedded filesDoes the recipient need each attachment?Retain approved attachments or remove them
Hidden text or OCR layerDoes extracted text match the intended visible content?Correct or remove inappropriate content
Layers, forms and revision-related objectsDoes the construction retain information outside the release scope?Specialist inspection where present
Navigation and accessibility structureWhat helps the recipient use the document?Preserve and validate required structure

Keep the original under the applicable record policy. Cleanup should produce a separately identified release copy rather than silently replacing the evidence of how the document was prepared.

Record unknown structures explicitly. A tool that cannot inspect an embedded component has not shown that the component is absent. For a consequential document, that uncertainty should change the release decision or route the file to someone with suitable tools and expertise.

Inspect comments, attachments and properties in a synthetic PDF

Set up the example

The synthetic meeting-summary PDF has two harmless visible sentences. It also contains fictional values in the author, subject and keyword properties, an XMP description, one comment and one embedded text file. Its approved title, document language and bookmark are intended to remain.

A local test on 31 October 2026 used PyMuPDF 1.26.6. The release instruction was explicit: remove the invented internal values and supporting objects, retain the public title and navigation, and leave both visible sentences unchanged.

The first cleanup attempt removed the XMP block, comment and attachment but supplied only the replacement title in a metadata update. Inspection showed that the old author, subject and keywords remained. A second pass explicitly cleared those metadata values and restored the approved title.

Inspection itemOriginalFirst attemptCorrected output
Internal author, subject and keywordsPresentStill presentAbsent
XMP descriptionPresentAbsentAbsent
Comment and embedded fileOne eachNoneNone
Approved titlePresentPreservedPreserved
Language and bookmarkPresentPreservedPreserved
Required visible sentencePresentPreservedPreserved

The before-and-after log retains observations and file hashes. The experiment record identifies the scope and correction. This makes a useful failure visible: changing some metadata is not evidence that every unwanted value has disappeared.

Interpreting the result

The test demonstrates the specified cleanup on this deliberately small fixture. PyMuPDF documents separate interfaces for ordinary metadata and XML metadata, reinforcing the need to identify which structure is being inspected.

The fixture has no form fields, optional-content layers, previous revision history or hidden OCR. It is not a tagged accessibility specimen. Preserving its language and bookmark therefore does not establish accessibility conformance or prove that another document will survive the same cleanup unchanged.

Verify the output independently

Metadata, attachment and content checks

Reopen the saved release copy and inspect the same inventory used before processing. Record actual values or counts rather than writing “clean” against the entire file. A count of zero attachments answers a specific question; a general cleanliness label hides what was examined.

Use more than the main properties dialogue when the source contains additional structures. Check embedded files, comments and relevant extracted text. Where the tool exposes XMP separately, inspect that representation too. If the result differs between inspection tools, investigate the difference instead of selecting the result that favours release.

Compare the visible pages and navigation with the intended public version. Confirm that the title still identifies the document, bookmarks reach the correct pages, and necessary links or form functions remain usable. If cleanup changes the page count or layout, obtain a fresh content review.

Keep private source material out of ordinary support tickets and screenshots. A synthetic reproduction of the unexpected metadata behaviour is often sufficient to investigate the mechanism. If a vendor needs the real document, obtain the information owner's approval and use the organisation's permitted transfer route.

Bind the inspection to the output hash. Otherwise a later conversion, merge or export can create a different file while inheriting an approval it never received. Reinspection should follow any transformation that can change the file's contents or structure.

Before releasing the inspected copy

Required metadata and accessibility

Decide which metadata is useful before removing it. A meaningful public title and document language can help readers; an internal editor's name may be unnecessary. A classification or retention label may also have an organisational purpose that should not be erased without the responsible owner's agreement.

For the release copy, require evidence that:

  • The likely disclosure surfaces were inventoried from the actual document.
  • Each removed or retained category has an explicit reason.
  • Unwanted values are absent in the saved output under the chosen inspection methods.
  • Necessary content, navigation, language and accessibility features remain usable.
  • Uninspectable structures and unsupported file types are escalated.
  • The approved output can be distinguished from the original and failed attempts.

If the document contains digital signatures or important interactive functions, assess the effect of modification before cleanup. Do not assume that a file can be changed while preserving every previous assurance or workflow capability. A specialist may need to define the correct release sequence.

The information owner should accept any remaining disclosure risk. The technical operator can report what was removed and checked, but cannot decide on their own whether an internal note, identifier or attachment is appropriate for external distribution.

Make pre-sharing checks repeatable

A reviewer checklist

Create a short checklist for each recurring document class. A board pack may need attention to internal comments and embedded spreadsheets; a scanned submission may need an OCR-layer comparison. Keep those priorities specific instead of forcing every file through a long checklist of structures it never contains.

Record the processing version, inspection methods, output identifier, reviewer and decision. Give failed files a clear correction route and prevent them from entering the release folder. Preserve the minimum evidence needed to explain the result without unnecessarily duplicating confidential source data.

Repeat the checks after changes to source templates, conversion tools, collaboration software or cleanup settings. Add previously missed structures to the relevant document-class checklist. A reliable pre-sharing process is one that knows what it inspected, preserves what recipients need and can show why the exact released file was accepted.

Find embedded attachments in a business PDF

Inventory the attachments inside the PDF. A hash of the parent document cannot identify the spreadsheet embedded within it.

Read “Find embedded attachments in a business PDF”.

How to remove an internal PDF author name and keep the public title

Check each identifying property after cleanup while preserving the title, navigation and language fields readers still need.

Read “How to remove an internal PDF author name and keep the public title”.

Can two identical-looking PDFs contain different saved form values?

Compare the saved form data as well as its appearance. The worked test uses two identical page images with different stored field values.

Read “Can two identical-looking PDFs contain different saved form values?”.

Which metadata belongs in the archive and which belongs in the public PDF?

Define separate metadata requirements for the archival master and its public derivative, then inspect each file against its own profile.

Read “Which metadata belongs in the archive and which belongs in the public PDF?”.

Check metadata after PDF redaction

This section answers a narrower question than the rest of this page, and it does not mint a new URL. The original contribution preserved here is a synthetic redaction corpus with extraction, search and object-level checks.

Redact is Off. A black box is not a redaction. Use a synthetic string and look for it after the operation.

CheckBeforeAfterStill present?
A harmless token in the textPresentYour observationYes or no
The same token in metadata or another object you can namePresentYour observationYes or no

This is an inspection record. It includes no bypass and no claim that a product redacted the file.

The rest of this page remains the parent decision. Use the table for the question in the heading, and leave a cell blank rather than filling it from memory.

Sources

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with ChatGPT. Editorial and technical checks by Kairos (Codex). The linked articles were drafted with NotebookLM and independently checked and edited by Kairos (Codex).