Send a PDF; get back a zip containing one JPG per selected page, plus a manifest. Rotation and the page's visible area (CropBox) are always applied, exactly as a viewer shows the page.
See the PDF to JPG 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="pdf-to-jpg" 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=@drawing.pdf" \ -F "fileId=document-001" \ -F "referenceId=reference-001" \ -F "tool=pdf-to-jpg"
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.
| pages | string, optional | Default "all"; the page-selection grammar (1-3,7, last, etc.). |
| dpi | number, optional | Default 150. 36 to 600. |
| quality | number, optional | Default 90. 50 to 100 (JPEG quality). |
| colorspace | string, optional | "rgb" (default) or "gray". |
| antialias | boolean, optional | Default true. false turns off anti-aliasing for pixel-exact line art. |
| password | string, optional | Tried only if the empty password fails. |
The webhook delivers a .zip (not a single image): one page-0001.jpg per selected page, in order, plus manifest.json with each page's pixel and point dimensions and byte size.
Billed per page, not per document — 1 credit for every 10 pages, rounded up, regardless of the DPI chosen.
Delivered via the webhook as outcome=failure with a reason below — see the docs index for the full delivery shape.
| invalid_options | A page outside the document, or the request exceeds the per-page pixel limit or total output size limit — the limit is named in the error. |
| 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. |