Documents Leak Too: The Metadata Inside PDF, Word and Excel Files
People treat "I exported it as a PDF" as the finish line for document privacy. The export rewrote the file, so the assumption runs, and whatever was inside the original is gone. Mostly false. A document is a package of containers, and every export step decides which containers survive the trip. PDF files, Word documents and spreadsheets all carry their own metadata layers beneath the text you can see, and recipients can read all of it without special tools.
What a PDF remembers
Open any PDF in a serious reader and press Ctrl-D, or open Document Properties. You get fields the document's author rarely chose: Title, Author, Subject, plus Producer and Creator Tool. Producer names the software engine that generated the file. Creator Tool names whatever application authored the content first. A resume that says "Microsoft Word for Microsoft 365, refined by ScanSoft PDF Create!" tells a recruiter your words arrived through scanning software, and which paid tools your employer licences.
Author is the sleeper. On a Windows machine, the Author field is populated from the Office account or the login name of whoever first saved the file. People routinely email documents to strangers with their full display name, and sometimes an old employer's licence holder name, sitting in a field no reader displays by default. Creation and modification dates land in the same block, with timezones attached, which lets a recipient reconstruct your working hours across a document set.
Modern PDFs go further. Since Acrobat 6, the XMP metadata block travels along the Document Info fields, and it repeats them in machine-readable form. Geotagged source images carry their GPS history into the PDF as XMP locations in many workflows, especially when photos are placed into a layout program and exported. A scanned survey, a property listing PDF, a site report with embedded photos: the pictures inside can still hold coordinates even after the paper story gets rewritten. Properties panels on the reader side will show you, which is the test worth doing once on one of your own files.
Redaction deserves its own warning. Drawing black rectangles over a region and saving does not remove underlying text. Proper redaction tools cut the content stream; annotations painted on top leave the original selectable underneath. Several court filings and press releases have learned this the expensive way.
Word files: the document remembers who edited
A .docx file is a ZIP archive wearing a different suffix. Change the extension to .zip, extract, and the contents sit in plain XML under docProps. core.xml carries creator, lastModifiedBy, created and modified dates, revision count and totalTime, which records minutes actively spent editing. app.xml adds Company, the template path the document was born from, and the application version.
The quiet one is lastModifiedBy. Colleague A writes the draft, colleague B overwrites two sentences, then A exports and sends to a client. The export preserves B's name as the last modifier even where A's contract terms matter. Share a roster across departments long enough and author chains build up. Document inspectors can strip this in one click, which raises the fair question of why so few workflows run them.
Tracked changes and comments hide in document.xml and comments.xml. The visible page can say one thing while the accepted-history pane says another: prices you struck out, names you considered, whole clauses moved between drafts. Anyone with a copy of Word can reopen the pane. Printing to PDF flattens this correctly, most of the time, and "most of the time" is why the verification step exists below.
Spreadsheets: hidden rows are the polite end
Excel workbooks store the richest extras. workbook.xml can contain worksheets with state="hidden", and a stronger flavour, state="veryHidden", which a casual right-click unhide never surfaces. Defined names can point at ranges in closed workbooks. xl/externalLinks keeps cached values and, more embarrassing, filesystem paths of the spreadsheets you consulted: invoice_final_Q3_ONLY_FOR_ME.xlsx and where it lived.
Formulas themselves travel with cell results. Send a quoting spreadsheet and the recipient can read your cost components, your supplier SKU codes, your margin arithmetic and your rounding habits, without unprotecting anything. A "values-only" paste into a fresh workbook is the only dependable flattening, and even that leaves the Author field behind unless you clear it.
The two-minute inspection habit
You do not need forensic tools. Two methods cover most day-to-day exposure:
- Rename a copy of the file to .zip and extract. Peek at docProps/core.xml in any text editor. Everything sensitive is plain English in there. Close without saving and rename back.
- Inside the application, run the built-in inspector. Word, Excel and PowerPoint expose one under File, Info, Check for Issues, Inspect Document. Acrobat has Properties plus a sanitise function under Tools, Redact. Office documents also let you delete Document Properties and Personal Information directly from the Info panel.
Whatever the claims of any export wizard, verify the finished artefact. The rule generalises past documents: check the thing that leaves, not the thing you prepared. Our piece on what Gmail and Outlook do with attachments covers the transport half of the same habit, and the social-platforms guide extends it to photo distribution. The platforms repackage your material; so does every conversion step in a document's life.
Print-to-PDF produces a fresh Document Info block, which sounds like the perfect scrub until you inspect the new file: the author field fills from the operating system account again, and the Producer string names your PDF driver. Flattening is a step in the routine, never the last step.
The send routine
- Decide, in one sentence, what the recipient is entitled to know.
- Run the inspector or the .zip peek on the final file.
- Clear authors, comments, versions, hidden sheets, external paths.
- Flatten through export or values-only paste where the format allows.
- Rename the result before attaching, so the filename carries no context either.
- Re-inspect the outgoing artefact, after every flatten step, once.
Images ride along in the same shipments. Photographs pasted into documents, quotes photographed as evidence, scans of passport-style photos: those keep full EXIF, including GPS, inside wrappers the document inspector ignores entirely. Dropping them through our homepage reader before embedding closes that particular gap, and it runs entirely in the browser.
The short version
- PDFs carry Author, Producer, Creator Tool, XMP and sometimes GPS in ways Document Properties exposes and redaction misses.
- Word files keep editor names, minute-by-minute editing totals, revision counts and resurrectable tracked changes in docProps XML.
- Spreadsheets ship hidden sheets, formula history, external workbook paths and cached foreign values.
- Every flattening step rewrites part of the metadata and repopulates author fields from your login identity.
- Check the final artefact with the .zip trick or the built-in inspector, then rename, then send.
- Images inside documents need separate EXIF treatment.