Edit a PDF
pdf_editEdit the text of an existing PDF in place: replace, delete, redact, insert, or fill form fields, keeping the original layout, fonts and everything you did not point at. edits[] is taken exactly as the API takes it (op, scope, match, fit), and the result carries up to 3 before/after previews of the pages that changed. 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. | |
| edits | Yes | The edits to apply, in order, exactly as `POST /v1/edit` takes them. | |
| options | No | ||
| password | No | The document open password, when it has one. | |
| output_path | No | Where to write the edited PDF (stdio mode only). Default: `<name>.edited.pdf` next to the input. |