Find embedded attachments in a business PDF
3 November 2026
To find embedded attachments in a business PDF before distribution, inspect the file's internal data structures to inventory all attached files, extract their file names, and calculate their SHA-256 byte fingerprints. Comparing these metrics before and after running an export or sanitisation routine verifies whether embedded supporting files were successfully removed or legitimately retained as approved exceptions.
Start with the copy that will leave the organisation
Open the original and the outgoing copy separately. Write down which attachments each contains before assuming that exporting a visible page also removed its supporting files. In a purchasing or release trial, use harmless documents and keep the original. The worked case asks for names and byte fingerprints of individual attachments before and after the export.
Worked decision record for attachment inspection
To demonstrate this audit workflow, the buyer can use the following observed local test as a starting point. The first-party evidence was recorded on 31 October 2026. The test environment utilised Python PDF processing libraries including pypdf version 6.10.0 and PyMuPDF version 1.26.6. Before-and-after inspection · Experiment record
In this example, an initial file (hidden-original.pdf) presents a single visible page containing a public meeting summary. Inspection reveals that the original file contains one embedded attachment (attachment_count: 1), one annotation (annotation_count: 1), active XMP metadata, synthetic author and subject fields (SYNTH-AUTHOR-8264 and SYNTH-SUBJECT-5617), and a unique SHA-256 byte fingerprint of dcaa2c4f5aeffd74eb93a100150af56eccd733f683fecdc93810cc3499d80bea. Before-and-after inspection · Experiment record
Following an initial automated cleanup operation (cleanup-attempt.pdf), the attachment count and annotation count were both successfully reduced to zero. However, the initial cleanup script relied on a partial metadata dictionary, retaining the synthetic author and subject properties. A second export (sanitised.pdf) cleared the tested author, subject and keyword fields while preserving the required document title ("Public meeting summary"), document language ("en-GB"), and bookmark structure. Before-and-after inspection · Experiment record
The decision ledger below records the measurable file states across these stages:
| File Fixture | Attachment Count | Annotation Count | Metadata Status | SHA-256 Byte Fingerprint | Decision & Action Status |
|---|---|---|---|---|---|
hidden-original.pdf | 1 | 1 | Retained (SYNTH-AUTHOR-8264) | dcaa2c4f5aeffd74eb... | Hold until the owner decides whether this attachment is authorised. |
cleanup-attempt.pdf | 0 | 0 | Retained (SYNTH-AUTHOR-8264) | c18f9de259548c... | The attachment was removed but the tested identifying metadata remained. |
sanitised.pdf | 0 | 0 | Cleared (Title preserved) | 002885d02d4097... | Specified local checks passed: Attachments removed, metadata cleared. |
Before-and-after inspection · Experiment record
Handling the difficult result
The fixture cleanup-attempt.pdf presents a deliberately difficult audit result. The inspection confirms that embedded attachments were successfully stripped (attachment_count: 0) and the SHA-256 checksum changed to c18f9de259548c16f910d85f6b2e7098d8f0225d796b3be9d7ce0fed4c861379. However, matching a recorded byte checksum or verifying attachment removal confirms only local file modification; it does not establish whether lingering metadata is compliant or whether current permissions are satisfied. Before-and-after inspection · Experiment record
The hashes in this table are fingerprints of the whole PDFs. The published register reports attachment counts. It does not give the attachments’ names or individual hashes. Do not copy a PDF digest into a row intended to identify a spreadsheet inside it. If you need that level of assurance, extract the file through your approved review process, fingerprint the extracted bytes and compare them with the permitted attachment. Before-and-after inspection
Use an exception register for files the recipient should keep
| Field | Record before export | Check after export |
|---|---|---|
| Parent PDF | Name and digest of the original | Name and digest of the file intended for delivery |
| Each embedded file | Name, byte count and digest of the extracted content | Present, absent or changed relative to the approved inventory |
| Decision | Remove or retain, with recipient, reason and owner | Reviewer checks the exact file and records any unexplained difference |
If two attachments have the same name but different fingerprints, put them on separate rows. A reader should be able to trace which bytes a particular recipient is authorised to receive. Where the business wants to retain an attachment, ask the owner for the permitted version and record the exception. If the recipient’s tool cannot list or extract attachments, record the inspection gap and use an approved inspection method before closing the item.
The local test demonstrates three concrete attachment counts. It does not certify unrelated hidden fields or approve a customer file. Apply the same inventory to a harmless representative document, then have the releasing reviewer compare the outgoing copy with the recorded exceptions. Before-and-after inspection · Experiment record
Part of the Check PDF metadata and hidden content before sharing guide.
Validate embedded fonts in an archival PDF
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 an archive conversion and validation record for representative files.
An archival copy needs a validation result you can point to, including whether the fonts the file needs are embedded.
| File | Conversion settings you can name | Validator result | Embedded fonts you expected |
|---|---|---|---|
| A representative file you may convert | Named | Pass, fail, or not run | Present, missing, or not checked |
Labelled synthetic case. Convert one permitted file and keep the validator output. “Looks the same” is not the validation cell.
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.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
