batch_modify_pdf_content
Apply the same text replacements to multiple PDF files at once. Each file is processed independently, and outputs are saved to a specified directory.
Instructions
Apply the same text replacements to multiple PDF files at once.
Each file is processed independently -- a failure in one file does
not stop the rest of the batch. Output files are written to
output_dir using the same filename as the input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_paths | Yes | List of absolute paths to input PDF files. | |
| output_dir | Yes | Directory where modified PDFs will be saved. | |
| replacements | Yes | Dictionary mapping old text to new text. | |
| use_regex | No | If true, treat keys as regex patterns. | |
| password | No | Optional password if PDFs are encrypted. | |
| max_file_size | No | Maximum allowed input file size in bytes (default: 100 MB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |