remove_pdf_metadata
Remove specific metadata fields or all metadata from PDF files to protect privacy or clean file properties.
Instructions
Remove specific metadata fields or all metadata from PDF.
The fields_to_remove and remove_all parameters are mutually exclusive:
use either fields_to_remove for selective removal OR remove_all for complete removal.
Args:
file_path: Path to source PDF file
output_file: Output PDF file path (optional, defaults to overwrite source)
fields_to_remove: List of specific fields to remove (e.g., ['title', 'author'])
remove_all: Remove all metadata if True (default: False)
Returns:
JSON string with operation resultsInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_file | No | ||
| fields_to_remove | No | ||
| remove_all | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |