AnyConvert
← All docs

PDF to PNG

Send a PDF; get back a zip containing one lossless PNG 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 PNG tool page, or the docs index for authentication, the shared request/webhook contract, and the generic error table.

Request

POST /webhooks/trigger — same endpoint and fields as every tool, with tool="pdf-to-png" set explicitly (it's not the default).

curl
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-png"

Options

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.

pagesstring, optionalDefault "all"; the page-selection grammar.
dpinumber, optionalDefault 150. 36 to 600.
colorspacestring, optional"rgb" (default) or "gray".
antialiasboolean, optionalDefault true. false turns off anti-aliasing for pixel-exact line art.
passwordstring, optionalTried only if the empty password fails.

Response

The webhook delivers a .zip (not a single image): one page-0001.png per selected page, in order, plus manifest.json with each page's pixel and point dimensions and byte size.

Pricing

Billed per page, not per document — 1 credit for every 10 pages, rounded up, regardless of the DPI chosen.

Failure reasons

Delivered via the webhook as outcome=failure with a reason below — see the docs index for the full delivery shape.

invalid_optionsA 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_fileThe file could not be read, or was not the format this tool expects.
render_failedSomething failed during conversion that wasn’t a problem with the input itself.
timeoutThe job did not finish within its time budget.
internal_errorAn unexpected error on our side.
AnyConvert
A simple conversion API for teams that need documents turned into the right format, automatically.
Tools
PDF to WordMerge PDFJPG to PDFSign PDFEdit PDFCompress PDFExtract Text with CoordinatesView all tools →
Product
DocsPricing
Legal
Terms of ServicePrivacy PolicyRefund Policy
Support
support@anyconvert.app
© 2026 AnyConvert. All rights reserved.