Edit or strip PDF metadata
pdf_metadata_writeEdit or strip PDF metadata: set title, author, subject, keywords, dates and custom fields, or remove all info, XMP, page-level data and document ID.
Instructions
Change PDF info fields (title, author, subject, keywords, creator, producer, dates, custom fields) or strip all metadata: info fields, XMP, page-level data and the document ID, and drop unreachable leftovers from earlier edits so no trace stays in the bytes. Untouched values keep their exact original form. Web version: https://s3eidat.github.io/pdf-metadata/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF: a local file path (absolute, or relative to the server's --root) or base64 data (raw or a data: URI). | |
| strip | No | Remove ALL metadata (other edits are ignored). | |
| title | No | Title. "" removes it; omit to keep it. | |
| author | No | Author. "" removes it; omit to keep it. | |
| custom | No | Custom info fields to set; null removes one. E.g. {"Company": null}. | |
| output | No | Where to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set). | |
| creator | No | Creator (the app that made it). "" removes it; omit to keep it. | |
| modDate | No | Modification date as ISO 8601. "" removes it; omit to keep it. | |
| subject | No | Subject. "" removes it; omit to keep it. | |
| keywords | No | Keywords. "" removes it; omit to keep it. | |
| producer | No | Producer (the PDF engine). "" removes it; omit to keep it. | |
| removeXmp | No | Remove the XMP metadata stream (and page-level XMP/PieceInfo). | |
| creationDate | No | Creation date as ISO 8601, e.g. "2026-03-14T09:30:00+03:00". "" removes it; omit to keep it. | |
| returnBase64 | No | Also return the output as base64 in the result (only for small files). Default false. | |
| removeDocumentId | No | Remove the document ID from the trailer. |