PDF Metadata: What's Hidden in Your Files
Every PDF you've ever shared carried a stowaway: metadata. Author names, the software that made it, creation dates, sometimes the editing history and even deleted content. Most of the time it's harmless. Sometimes — a job application revealing a previous employer's name, a 'clean' contract showing its true author — it's a quiet disaster.
Here's what's actually inside your PDFs, how to inspect it, and how to strip it before sharing.
What metadata lives in a PDF
PDFs carry two metadata systems. The classic Document Information Dictionary holds Title, Author, Subject, Keywords, Creator (the app that made it), Producer (the PDF engine) and creation/modification dates. The newer XMP stream can hold far more: edit histories, embedded thumbnails, camera data from scanned images, and custom fields added by authoring software.
Beyond declared metadata, PDFs can leak through structure: incremental saves preserve earlier versions of edited content, and un-flattened annotations or form fields may contain data you thought you removed.
Real ways metadata burns people
- A resume's Author field naming a current employer the applicant didn't mention
- A legal document's edit history revealing negotiation positions
- Scanned images carrying GPS coordinates from the phone that photographed them
- 'Final' reports containing earlier draft text recoverable from incremental saves
- Creator fields advertising outdated, vulnerable software versions
How to inspect your PDF's metadata
The quick check: open the PDF in any reader and look at Document Properties (Ctrl+D / Cmd+D in most readers) — Title, Author, and app info are right there. For the full picture including XMP, the free command-line tool ExifTool dumps everything: exiftool yourfile.pdf reveals fields readers never show.
Make this a habit before sending anything sensitive externally. It takes ten seconds.
How to strip it
Re-saving a PDF through a clean serializer clears the standard Document Information fields — this is exactly what free browser compressors do as a side effect of rewriting the file. For thorough sanitization including XMP, incremental-save history and hidden layers, use Acrobat's 'Sanitize Document' feature or ExifTool's metadata removal.
One caution: stripping is destructive to the metadata only, never to visible content. But verify afterward — open properties and confirm the fields are actually gone.
When to keep metadata
Metadata isn't always the enemy. Archival workflows, digital asset management and accessibility all rely on good Title/Author/Language metadata. The rule: keep rich metadata for files you manage, strip it for files you share externally — especially with strangers.
Scanned vs born-digital: different leaks
Born-digital PDFs (exported from Word, InDesign) leak authoring metadata: usernames, software versions, edit histories, tracked changes. Scanned PDFs leak capture metadata instead: the scanner or phone model, GPS coordinates from camera photos, and timestamps accurate to the second.
The defenses differ accordingly. For born-digital files, sanitize authoring fields and flatten tracked changes before export. For scans, strip EXIF from the images before assembling the PDF — or run the finished PDF through a metadata scrubber. Check both kinds with ExifTool before sharing.
Related guides
A five-minute metadata audit you can run today
Knowing metadata exists is one thing; auditing a real file takes a routine. Here is the check to run on any PDF before it leaves your organisation — five minutes, in order, using tools you already have plus one free download.
Minute one: the properties dialog. Open the file in your usual reader and open Document Properties (Ctrl+D or Cmd+D). Read every field as an adversary would: Title, Author, Subject, Keywords, Creator, Producer, and both dates. Author fields frequently contain a personal name or a machine username rather than the organisation's name, and Creator cheerfully announces the exact software and sometimes version used — useful reconnaissance for anyone probing for unpatched vulnerabilities. Note anything you wouldn't print on the document's cover.
Minutes two and three: the deeper layers the dialog doesn't show. Run ExifTool — the command exiftool file.pdf prints the full metadata set, and adding the -a -G flags shows duplicate and grouped fields, including the XMP stream. Look specifically for: company or manager names in custom fields, GPS coordinates carried in from scanned photographs, and an XMP edit history naming previous authors. Then check the three places metadata hides that aren't 'metadata' at all:
- Annotations and comments: reviewer names, initials and timestamps are stored with every comment and markup. A 'clean' final PDF with the comment layer intact can reveal who objected to what, and when.
- Embedded attachments: files bundled inside a PDF — a source spreadsheet, say — carry their own untouched metadata. Scrubbing the container does nothing for its contents; audit attachments separately or remove them.
- Form field values and hidden layers: un-flattened form data and turned-off layers (an alternative design, a redacted-by-hiding paragraph) travel with the file and can be switched back on by anyone.
Minute four: scrub deliberately, matching the tool to the finding. A clean re-save through a serializer clears the standard Document Information fields. XMP histories, annotation authors and incremental-save remnants need the heavier pass — Acrobat's Sanitize Document, or ExifTool's removal (exiftool -all= file.pdf) followed by a re-save. One hard warning: sanitizing modifies the file, which invalidates digital signatures. If a document is signed, its metadata is part of the signed record — audit before signing, never after.
Minute five: verify, don't assume. Re-open Document Properties and re-run ExifTool on the scrubbed file and confirm the fields are actually empty — tools differ in what they clear, and 'we removed metadata' claims in software marketing have a generous definition of metadata. Only then send.
The commonest audit failures are sins of narrowness: clearing Title and Author while leaving XMP untouched; scrubbing the PDF but not the photographs embedded in it, whose EXIF data survives page-level cleaning; and checking the final version while an earlier draft — with full metadata — is the file that actually got attached. Audit the attachment, not the intention.
Two subtler leaks deserve a place on the checklist because they survive otherwise careful audits. The first is time itself: PDF creation and modification dates are stored with a timezone offset, and that offset quietly advertises where in the world the file was made. A document supposedly produced by a London office that carries a +05:30 offset tells a story its author never wrote. The second is the template effect. Every document born from a shared template inherits the template's metadata — the original author's name, a company field from a decade-old rebrand, keywords nobody chose. Scrubbing finished documents one by one treats the symptom forever; cleaning the template once, and re-issuing it, cures the whole fleet of future exports at the source.
For teams that share documents externally on a regular basis, turn the audit into a one-page policy rather than a personal habit: which fields must be empty before a file leaves, which tool is the approved scrubber, and who spot-checks. Habits depend on memory and mood; a checklist pinned to the sending step does not. The five minutes above are the entire cost — set against the one incident everyone remembers, where a 'final, confidential' file introduced its real author and its full revision history to exactly the wrong reader.
Frequently asked questions
What personal data can leak through PDF metadata?
Author names, organization, software used, creation and edit dates, GPS coordinates in scanned images, and sometimes earlier draft content preserved by incremental saves.
How do I view a PDF's metadata?
Open Document Properties in any PDF reader for the basics (Title, Author, app info). For the complete picture including hidden XMP data, use the free ExifTool.
How do I remove metadata from a PDF for free?
Re-saving through a clean serializer — which free browser PDF compressors do automatically — strips standard metadata fields. For deep sanitization use Acrobat's Sanitize Document or ExifTool.
Does compressing a PDF remove its metadata?
When compression rewrites the file cleanly, yes for standard fields (author, title, producer). It may not clear XMP streams or incremental-save history — use a dedicated sanitizer for sensitive documents.
Private by design: SwiftPDF tools run entirely in your browser — your files never leave your device.