PDF Metadata Guide: XMP, Properties & Privacy

Metadata is the invisible half of a PDF. Most people never look at it, which is exactly why it leaks usernames, file paths, software fingerprints, and edit history. Understanding what's stored — and how to strip it — should be part of every PDF workflow.

Two Metadata Containers

ContainerFormatTypical FieldsNotes
Info dictionarySimple PDF objectTitle, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDateLegacy; still read by older tools
XMP metadata streamRDF/XMLDublin Core, rights, custom namespacesModern standard; required for PDF/A
Embedded image EXIFPer-image binaryCamera model, timestamps, GPSSurvives unless re-encoded
Font namesPer-fontFoundry name, subset prefixCan reveal authoring software
JavaScript actionsDocument or field scriptsAuthor code, URLsReveals intent and tools

Privacy: What Leaks by Default

  • Author: usually the OS account name — often a real name.
  • Creator / Producer: the application versions used; fingerprints workflows.
  • CreationDate / ModDate: timestamps may include a UTC offset. That offset is not reliable evidence of a person’s location.
  • Local file paths: some tools embed the absolute source path in XMP xmpMM:DerivedFrom.
  • EXIF on embedded photos: GPS coordinates, camera serial numbers, original capture times.
  • Object generations: incremental updates preserve prior values; deleted text may still be recoverable.

Sanitizing Metadata Safely

  1. Use a "Sanitize Document" feature or scripted pipeline that rewrites and strips XMP + info dictionary.
  2. Re-encode embedded images if you don't trust their EXIF.
  3. Use a tool designed to sanitize the relevant content, then verify its output. A new filename or Save As operation does not by itself establish that prior revisions or sensitive objects are gone.
  4. Inspect reported properties with exiftool or pdfinfo, then separately check attachments, actions, layers, revisions and sensitive visible content. These property listings do not prove sanitization.
  5. For PDF/A targets, write a minimal sanitized metadata set instead of leaving the streams empty.

Useful Metadata

Useful metadata can support document discovery and accessibility, depending on the reader. Set title, language and subject deliberately. ZUGFeRD/Factur-X workflows embed a structured XML invoice as an associated file with identifying metadata; an arbitrary custom XMP block alone is not a compliant invoice.

A Pre-Publish Privacy Checklist

Before you put a PDF on the public web or send it to a counterparty, run through this quick pass — it takes a minute and prevents the most common leaks:

  1. Author & producer: open Document Properties and clear your real name, username, or company if you don't want it public — these fill in automatically from your software account.
  2. File paths: some tools embed the original save path (e.g. C:\Users\yourname\...); a sanitize pass removes it.
  3. Embedded image EXIF: photos pasted in can carry GPS coordinates and camera serials — re-encode them if in doubt.
  4. Revision history: incremental updates can retain earlier objects. Do not rely on Save As as a sanitization guarantee; use an appropriate removal workflow and independently inspect the result.
  5. Verify: check properties with exiftool or pdfinfo and inspect other hidden content separately; neither command establishes complete removal.

Shrink Files Before Publishing

Compress oversized PDFs in your browser — pair with a metadata sanitize pass.

Compress PDF →

Frequently Asked Questions

Info dictionary, XMP RDF/XML stream, embedded image EXIF, font names, and scripts.
PDFs can contain author names, file paths, software details, timestamps or embedded image metadata. Inspect the actual document and sanitize information inappropriate for the recipient; do not assume every file contains or leaks these details.
Document Properties panel, exiftool, pdfinfo, or qpdf.
No, but PDF/A requires metadata — rewrite sanitized values instead of deleting.
Structured data: e-invoices, photo rights, archival IDs, scientific dataset references.