Send a PDF; get back the same PDF with its form fields and annotations turned into fixed page content, so they can no longer be edited or removed.
See the Flatten PDF tool page, or the docs index for authentication, the shared request/webhook contract, and the generic error table.
POST /webhooks/trigger — same endpoint and fields as every tool, with tool="flatten-pdf" set explicitly (it's not the default).
curl -X POST https://api.anyconvert.app/webhooks/trigger \ -H "x-api-key: your_api_key_here" \ -F "file=@form.pdf" \ -F "fileId=document-001" \ -F "referenceId=reference-001" \ -F "tool=flatten-pdf"
An optional options multipart field carrying a JSON object, validated synchronously before a credit is charged — a bad value is rejected with 400, not charged and not queued.
| annotations | string, optional | "all" (default), "print" (only annotations that print), or "screen". |
| formFields | boolean, optional | Default true — also generate form-field appearances and remove the form. false flattens only annotations. |
A signed input has its signature values removed (flattening changes the file) with a warning. XFA forms and calculated fields have their own notes in warnings when present.
Billed per document — $1 (1 credit) per flattened PDF.
Delivered via the webhook as outcome=failure with a reason below — see the docs index for the full delivery shape.
| invalid_file | The file could not be read, or was not the format this tool expects. |
| render_failed | Something failed during conversion that wasn’t a problem with the input itself. |
| timeout | The job did not finish within its time budget. |
| internal_error | An unexpected error on our side. |