PDF

PDF pages to PNG images

Renders each page (or the ones in pages) as a PNG. scale 1 is 72 dpi; 2 is 144 dpi.

Costs 1 credit per call.

post/pdf-to-images

Request

  • Base URL: https://api.cofferdock.com
  • URL: https://api.cofferdock.com/pdf-to-images
  • Auth: API key in header x-api-key

Request body

filestring byte required

The PDF, base64-encoded.

pagesstring

Pages to act on, 1-indexed, e.g. "1-3,5,7-9". Default: all pages.

scalenumber

Resolution multiplier (0.5-4). Default 1.5; higher = sharper and larger images.

output'json' | 'binary' | 'url'

How to return the images: "json" (base64 in the JSON response), "binary" (the images itself, ready for n8n/Make/Zapier) or "url" (a temporary download link, valid 15 minutes). Default: json when the request is JSON, binary when the input was sent raw.

Response

One PNG per page.

successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.