Skip to content
WipeTags
Blog post

Why some PDF cleaners leave your name in the file

By DrakuuPublished Updated 4 min read

Because many of them never rewrite the file. A PDF can be changed by adding a new section to the end, so a tool can write a fresh, empty author field on top while the old name stays in the bytes underneath — invisible in a PDF reader, but still there and recoverable. We ran into this while building our own PDF Metadata Remover. Here is what we tested, how to check your own files, and how to clean a PDF for good.

How a PDF can be edited without erasing anything

PDF has a feature called an incremental update. Instead of rewriting the whole file, a program appends a modified copy of the parts it changed and leaves the originals where they were. Each update ends with its own end-of-file marker, written as %%EOF. A PDF reader shows the newest version of everything, so the file looks changed — but the earlier version is still inside.

This is useful: it makes saving fast and keeps digital signatures valid. It becomes a privacy problem when the “change” was meant to remove something, such as your name in the Author field.

What we found when we tested it

We took a small sample PDF whose Author field read “WipeTags Sample” and changed the author with an incremental update, the way many editing tools save. The file grew from 1,347 to 1,902 bytes. A PDF reader showed only the new author, but the old name was still in the file’s bytes for anyone who looked.

This is documented behaviour, not a bug in one product. ExifTool, the metadata engine many tools are built on, says its own PDF edits use incremental updates so they are fast and reversible — and that the original values can be restored by removing the update. Its author is clear that this makes ExifTool alone unsuitable for securely removing PDF metadata.

How we fixed it in WipeTags

Our PDF remover does not append. It rebuilds the file from only the parts the pages actually use, so earlier revisions and orphaned copies of old metadata are left behind. It also gives the file a new random ID and then checks the result twice before offering a download.

On the same sample, the cleaned file came out at 1,099 bytes, with neither the old nor the new author anywhere in it, a single revision, and the same page. We then built a harder test — three pages with XMP metadata, app-private data, compressed object streams and a second revision — and all eight values we planted were gone, while the page text was unchanged.

We also cleaned a real file: a 216-page, 10.8 MB PDF exported from Word. Before cleaning, our reader found the author, the creating app, the producer, both dates and the XMP document IDs. Afterwards none of those were left. What remained was the PDF version, page count, language and similar structure flags, plus file-name and size lines the reader adds itself. The cleaned file was about 2% smaller than the original.

How to check your own PDF

You can look for leftovers with a plain text editor such as Notepad or TextEdit. It is a rough check, not proof:

  • Open the PDF in the text editor and search for %%EOF. More than one usually means the file was edited by appending — although some normally saved files contain two, so treat it as a hint
  • Search for /Author. If you see more than one, an older value may still be in the file
  • Absence is not proof: metadata can sit inside compressed sections that a text editor cannot read
  • To see the values a reader shows today, open the file in the PDF Metadata Viewer

Ways to remove PDF metadata for good

Any method that rebuilds the file, rather than appending to it, avoids the problem:

  • Our PDF Metadata Remover, which rebuilds the file in your browser and re-checks it
  • On a computer with ExifTool, follow an edit with the free qpdf tool, as ExifTool’s documentation suggests (qpdf --linearize), which rewrites the file without the old revision
  • Adobe Acrobat Pro’s sanitise and remove-hidden-information tools, which Adobe says remove hidden data and metadata permanently
  • Printing to a new PDF also produces a fresh file, but it can lose links, form fields and bookmarks

What no metadata remover fixes

Metadata is only part of what a PDF can reveal. Comments and their author names, form values, attachments, text hidden under black boxes that were drawn instead of properly redacted, and photos placed in the document with their own EXIF are all content, not document properties. Check those in your PDF editor before you share a sensitive file — and keep the original, in case you need it later. For the wider picture, read can any tool remove all the metadata from a file?

Sources

Related tools

Keep reading