Back to all guides

PDF Metadata and Privacy: What Your Documents Reveal About You

Discover what hidden information PDFs contain, including author names, editing history, GPS coordinates, and how to remove it before sharing.

7 min
·2026-03-09

What Metadata Lives Inside Your PDFs

Every PDF contains metadata, structured information about the document that is separate from the visible content. At a minimum, the PDF document information dictionary includes the title, author, subject, keywords, creation date, modification date, creator application, and PDF producer (the library or tool that generated the PDF). This information is automatically populated by the software used to create the PDF and often reveals more than the creator intends.

The author field typically contains the name from the software's user profile, which may be a person's full name, a username, or a company name. The creator field identifies the application (e.g., "Microsoft Word 2019" or "Adobe InDesign 2024"). The producer field identifies the PDF generation library (e.g., "macOS Quartz PDFContext" or "iTextSharp 5.5.13"). Creation and modification timestamps reveal when the document was created and last edited, sometimes exposing tight deadlines or the timing of revisions.

Beyond the basic document information dictionary, PDFs can contain XMP (Extensible Metadata Platform) metadata, a more extensive metadata framework that can store editing history, software versions, document identifiers, and custom properties. Some applications embed GPS coordinates (especially when creating PDFs from photos on mobile devices), the original filename and file path, and even incremental edit history that reveals previous versions of the content.

Privacy Risks of Embedded Metadata

Metadata privacy risks range from minor embarrassment to serious security vulnerabilities. In legal and business contexts, metadata has caused significant problems. Leaked document metadata has revealed ghostwriters when the author field showed an unexpected name. Modification timestamps have contradicted claims about when documents were prepared. Creator software information has revealed that supposedly original documents were actually modified copies.

The hidden data in PDFs extends beyond standard metadata. Documents may contain embedded thumbnails that show an earlier version of the content. PDF documents with incremental saves can contain deleted or modified content from previous versions that is no longer visible but remains in the file. Comments and annotations may contain reviewer names and timestamps. Form field data may include values from previous submissions. Attached files may contain their own metadata.

For sensitive documents, the risks are concrete. A whistleblower's identity could be exposed through the author metadata. A company's internal software infrastructure is revealed by creator and producer fields. A document's revision timeline could undermine legal arguments about when decisions were made. Geographic metadata could reveal the location where a document was created. Before sharing any document externally, especially in legal, journalistic, or high-stakes business contexts, reviewing and removing metadata should be a standard practice.

Examining PDF Metadata

Several methods exist for examining what metadata a PDF contains. Adobe Acrobat's Document Properties dialog (File > Properties) shows the basic document information dictionary. The Description tab displays title, author, subject, and keywords. The Custom tab shows any custom metadata properties. However, this view does not show all metadata.

For comprehensive metadata inspection, ExifTool is an invaluable command-line utility. Originally designed for image metadata, ExifTool reads and writes metadata in hundreds of file formats including PDF. Running ExifTool on a PDF reveals every metadata field, including XMP data, document information dictionary, and embedded metadata from other objects. The output can be extensive for documents created with metadata-rich applications.

Programmatic inspection using Python is useful for batch metadata auditing. The PyPDF library can access both the document information dictionary and XMP metadata. A simple script can iterate through a directory of PDFs and generate a report of all metadata fields, highlighting potential privacy concerns such as personal names in author fields, internal file paths, or unexpected software identifiers. For organizations handling sensitive documents, regular metadata auditing helps identify documents that were shared without proper metadata cleanup.

Removing Metadata from PDFs

Metadata removal ranges from basic cleanup to thorough sanitization. Basic cleanup removes the obvious fields: author, title, subject, keywords, and custom properties. This can be done in Adobe Acrobat through the Document Properties dialog or using the Examine Document feature (File > Save as Other > Optimized PDF > Discard User Data). The "Remove Hidden Information" tool in Acrobat searches for and removes metadata, comments, hidden text, bookmarks, and embedded search indexes.

For thorough sanitization, ExifTool can strip all metadata from a PDF with a single command. QPDF can create a clean copy of a PDF that excludes unreferenced objects (which may contain residual data from previous edits). Ghostscript can re-process a PDF, effectively creating a new file that contains only the visible content, stripping metadata, incremental save history, and embedded objects.

Browser-based tools can remove metadata client-side without uploading the document. Using pdf-lib in JavaScript, a tool can open a PDF, clear the document information dictionary, remove XMP metadata, and save a clean copy. This approach is particularly valuable for sensitive documents because the file never leaves the user's device. The limitation is that browser-based tools may not catch all forms of hidden data (such as incremental save history in the raw PDF structure), so for highest-security requirements, desktop tools that can re-linearize the PDF from scratch are recommended.

Metadata Policies for Organizations

Organizations that regularly share documents externally should establish metadata policies. A metadata policy defines what metadata should be present (required fields for document management), what metadata must be removed before external sharing, and the process for metadata review. The policy should be documented, communicated to all document creators, and enforced through automated tools where possible.

For required metadata, consider what information helps recipients and your organization. A meaningful title and subject help with document management. A generic author like the company name (rather than an individual's name) may be appropriate for externally shared documents. Creation and modification dates are generally harmless and may be legally relevant.

For metadata removal, the policy should specify which fields to remove before external sharing (typically author, creator, producer, file paths, and custom properties), who is responsible for removal (the document creator, a reviewer, or an automated system), and how removal is verified. Template-level controls can help: configure document templates in Microsoft Office and other applications to use generic author information, preventing personal data from being embedded in the first place. For email-based sharing, consider an email gateway that automatically strips PDF metadata from outgoing attachments.

Metadata for Document Management

While metadata can be a privacy risk, it is also essential for effective document management. The key is intentional metadata: including the information you want while excluding what you do not. Well-managed metadata makes documents findable, classifiable, and traceable.

For internal document management systems, custom metadata properties are valuable. You can add fields for document type, department, project code, confidentiality level, retention period, and approval status. These properties can be set when the document is created and updated as it moves through review and approval workflows. Document management systems like SharePoint, M-Files, and OpenText use PDF metadata to index, categorize, and manage documents.

XMP metadata supports structured, extensible properties using XML schemas. Organizations can define custom XMP schemas for their specific metadata needs. This is particularly useful for regulated industries where specific metadata must accompany documents (document control numbers, revision levels, approval signatures). The PDF/A standard requires XMP metadata for certain properties, including the conformance level identifier, making XMP expertise important for archival workflows.

When using metadata for document management, separate internal metadata from external metadata. Internal metadata (project codes, reviewer names, approval history) should be stripped before external sharing. External metadata (title, subject, creation date) can remain. Automate this separation so that the metadata removal for external sharing does not require manual effort for each document.