Batch-edit a PDF template
pdf_batchApply the same edits to one template PDF once per record, producing one output document per record — a mail merge over an existing PDF. Returns a job_id: call pdf_job with it for the per-record results. To change text on one page only, set scope.pages; to pick one of several identical matches, use scope.after with nearby text or scope.occurrence. Use op: 'redact' when the text must be unrecoverable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call. Used as the template for every record. | |
| edits | Yes | The edits applied to each record, with `{field}` placeholders filled from it. | |
| options | No | ||
| records | No | One object per output document. | |
| password | No | ||
| records_url | No | A CSV or JSONL file of records, instead of `records`. |