Tools API Blog
Sign in Create account

Convert PDF to images

PDF to images is an API that turns every page of a PDF into a PNG image. Great for generating thumbnails or previews from n8n, Make or Zapier, with no servers to maintain.

How it works

You send a PDF and get back a JSON with one PNG image per page, in base64. Nothing is stored: it's generated on the fly.

Since the result is several images at once, the response is always JSON with one base64 PNG per page (never a single loose image, even for a 1-page PDF).

All you need

  • Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).

How to use it in n8n (step by step)

You send your PDF as is (as binary data) and get the images back in JSON. In the HTTP Request node:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-to-images
  • Send Headers: on → add two: x-api-key = your key, and Content-Type = application/pdf
  • Send Body: on → choose the binary file option (in n8n: "n8n Binary File", with your PDF's binary property, usually data)

The response carries { "images": [{ "page": 1, "png": "<base64>" }, …] }. To save each page as a separate file you need one more step to decode each base64.

In Make (HTTP → Make a request module): same method and URL, the two headers, and the PDF as binary data in the body.

Options (as Query Parameters or in the JSON)

OptionDefaultWhat it does
scale1.5Image quality/size. Higher = sharper and heavier.
pagesallWhich pages to convert, e.g. 1-3,5. Omit it to convert the whole PDF.

What you get back

A JSON object with one base64 PNG image per page converted.