Nyxiontech PDF Tools › Edit PDF metadata

How to check and remove hidden PDF metadata

Before you publish a PDF, send it to a client or submit it anonymously, look at what the file says about itself. Besides the pages, a PDF can carry the name of the person who wrote it, the program that made it, when it was created and last changed, and sometimes the title of an earlier draft. None of this shows on the page. This guide shows where that metadata sits, how to check it, and what our Edit metadata tool removes and what it leaves.

Where the metadata lives

A PDF has two places for document metadata. The older one is the document information dictionary, with entries such as Title, Author, Subject, Keywords, Creator (the app that made the original, for example a word processor), Producer (the software that wrote the PDF), CreationDate and ModDate. The newer one is an XMP metadata stream, an XML packet stored inside the file. The PDF 2.0 standard, ISO 32000-2, calls metadata streams the preferred method and also allows them on parts of a document, not only on the whole file (clause 14.3).

Many apps write both, so a name can be in the file twice. Microsoft Word, for example, puts the document properties into an exported PDF when Document properties is selected in the options of the PDF export (Microsoft support).

Other places can name people too: each comment stores the name of whoever wrote it, photos inside the PDF can keep their own camera data, and the file name is often the most revealing of all.

How to check what a PDF contains

  1. In your PDF viewer. Most viewers show the information dictionary under Document properties. Few show the XMP packet.
  2. With pdfinfo. pdfinfo, part of Poppler (poppler-utils on most Linux systems, poppler in Homebrew on a Mac), prints the information dictionary. With -meta it prints the XMP packet instead.
  3. With exiftool. exiftool -a -G1 lists both, each entry labelled with its group, so you can see whether a value comes from the information dictionary or from XMP.
  4. In the tool. Drop the file on Edit metadata to see the six text fields of the information dictionary. The tool does not show the dates or the XMP packet, so use pdfinfo or exiftool to read those. It removes the packet when you save, whether or not you could see it here.
pdfinfo report.pdf
pdfinfo -meta report.pdf
exiftool -a -G1 report.pdf

Remove it with Edit metadata

  1. Open Edit metadata and drop the PDF on Choose a PDF. It is read in your browser and not uploaded.
  2. The Title, Author, Subject, Keywords, Creator and Producer fields show what the file contains. Edit any of them, or click Clear all fields.
  3. Click Save metadata and download the result. It keeps the original file name, so rename it if the name gives something away.

Saving removes the document's XMP packet as well, so both copies of these values go at once. That matters more than it sounds. A viewer may prefer the XMP copy to the information dictionary, so a tool that cleared only the fields would leave you looking at six empty boxes while the old author name sat in the file, waiting for the next person who ran exiftool on it.

The tool writes the whole file again instead of appending a change at the end, so the old values are not left in an earlier revision. That is not a given: the ExifTool documentation warns that its own PDF edits are reversible because "old information is never actually deleted from the file" (ExifTool PDF tags).

What Edit metadata does not remove

When the dates or per-page metadata must go too

Build a new file from the pages. In Split PDF, choose By ranges, type 1- under Ranges and click Split PDF. You get one file with every page, named like report_p1-12.pdf.

That file is made from scratch. The old information dictionary and any document XMP packet are not copied, both dates are set to the moment of the split, and Creator and Producer name pdf-lib, the library the tool uses. Run the result through Edit metadata if you want those two fields empty as well. Comments and any metadata attached to single pages or images travel with the pages. Bookmarks and interactive form fields of the original are not carried over, so do this on the final version.

Checklist before you share

Open Edit metadata