Remove PDF metadata
remove_pdf_metadataStrip hidden metadata—author, title, keywords, dates and XMP—from a PDF while leaving page content unchanged. Saves a clean copy to a new path.
Instructions
Save a copy of a PDF without hidden metadata: author, title, subject, keywords, creator and producer apps, dates and XMP data. Page content is not changed. Use clean_office for Word, Excel and PowerPoint files. Returns the saved path; the input is not changed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "remove_pdf_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (absolute, or relative to the working directory). | |
| output | No | Where to save the result. Defaults to a new file next to the input. | |
| password | No | The PDF's current password, if it has one. |