Clean PDF metadata
pdf_clean_metadataStrip all metadata from a PDF file, including title, author, subject, keywords, creator, dates, and XMP data. Operates entirely on your local machine with no network transfer.
Instructions
Strip document metadata: clears title, author, subject, keywords, creator and the CreationDate/ModDate in the info dictionary, AND deletes the document-level XMP metadata stream (the copy Acrobat/Word/InDesign write). Note: pdf-lib rewrites /Producer with its own signature on save, so that one field is replaced rather than emptied. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the input PDF | |
| output | Yes | Path to write the cleaned PDF |