Skip to main content

Turn PDF pages into images

POST 

/pdf/to-image

Draws pages of a PDF as PNG or JPEG pictures: thumbnails, previews, pictures for a page or a chat. One page answers a render whose output is the picture (contract-1.png), several a ZIP of them, named by page. Without pages every page is drawn. One call draws at most 100 pages and 120 million pixels, about 55 A4 pages at 150 dpi or 13 at 300 dpi (422 page_limit_exceeded above). Fonts a PDF does not embed are drawn with the converter's fonts. The source is a stored PDF named as source in a JSON body, or an upload as multipart/form-data with the PDF as file (never stored). Costs one unit per picture on live keys, as an image render does; Starter plan and above. A password-protected PDF answers 422 source_encrypted. Needs render:create.

Request​

Responses​

The render; its output is png or jpg for one page, zip for several.