Guide
Viewing and cleaning hidden PDF metadata
By Logappradeep · ServiceNow developer
Every PDF carries information about itself that is not printed on any page: a title, an author, the program that created it, when it was made and last modified, and sometimes keywords. This metadata appears in a reader's document properties dialog, in browser tab titles and in search results, and it is often more revealing than people expect.
Where metadata lives
PDFs store metadata in two places. The document information dictionary holds the classic fields: Title, Author, Subject, Keywords, Creator, Producer, CreationDate and ModDate. Many files also contain an XMP metadata stream, an XML block that can duplicate those fields and add more, such as editing history identifiers. This tool reads and writes the information dictionary fields and, when removing metadata, clears both.
Why edit metadata?
- Better titles. When a PDF is opened in a browser or indexed by a search engine, the Title field is often shown instead of the file name. A file titled "Microsoft Word - Document3" looks careless; "2026 Annual Report" does not.
- Correct authorship. Files created from templates may list a former colleague or a default user name as the author.
- Findability. Subject and keywords help document management systems and desktop search find the file.
Why remove it?
Metadata can leak information. The Author field may contain your full name or a username from your computer account. Creator and Producer reveal the software and version used. Dates expose when a document was really written, which can contradict a date printed on the page. Before publishing a document, sending it to an opposing party, or sharing it anonymously, it is sensible to strip this information. The Remove all metadata option clears the information fields and the XMP stream in one step.
How the tool works
The PDF is opened with pdf-lib in your browser and its current fields are shown in an editable form. When you save, the new values are written and the document is saved as a new file; pages, text and images are not changed. Because the point of cleaning metadata is usually privacy, it would be counterproductive to send the file to a server to do it, and here nothing is uploaded.
Limits worth knowing
Metadata is only one place where hidden information can live. Comments, annotations, form field values, embedded attachments and the original names of images can also carry details, and text hidden under shapes is still present in the file. Removing metadata does not touch those. Dates are written in your local time zone, and some programs update the modification date again when they save the file, so set dates last if they matter.