Español

Lee este artículo en español.

How to convert PDF pages into images

Sometimes you don't need the whole PDF, you need an image. It comes up when you want to upload a report's cover page to a website, paste a PDF page into a presentation, show a document on social media, or generate a thumbnail so people know what's inside a file before opening it. You can't paste a PDF directly into Instagram, Canva or most image editors: it has to be converted first.

It comes up mostly in these situations:

The manual trick: screenshots

For a single page, just once, it's enough to open the PDF, go full screen and take a screenshot. It works, but it has three problems: the resolution depends on your monitor and you don't control it, you have to repeat it page by page if you need several, and it's not something you can automate inside a workflow. Fine for a one-off document; not for doing it every time a PDF gets uploaded to your system.

Converting every page automatically

With PDF to images you send the PDF (as a file or as JSON) and get back an image for every page converted, always as JSON, with each image encoded along with its page number and pixel dimensions. It only outputs PNG (there's no JPEG option), which is the format that keeps document text sharpest.

By default it converts every page, but you can request just some of them by specifying a range, like "1 through 3, plus 5." That's useful, for example, if you only want the cover: request page 1 and skip converting the rest.

Controlling resolution with scale

The more resolution you need, the heavier the image gets. There's a scale factor that controls that trade-off: it defaults to 1.5, with a range from 0.5 to 4. For a small thumbnail in a document list, a low value is more than enough and stays light; for an image you're going to enlarge or print, push the value up and trade file size for sharpness.

It doesn't matter how many pages you convert in one go: the call costs 1 credit, whether you convert one page or fifty.

FAQ

Can I get just one page, like the cover? Yes, by specifying the page range you want. For example, requesting just page 1 gives you only the cover, converted.

Can I get JPEG images instead of PNG? No, the output format is always PNG. It's a fixed limitation of the tool, meant to keep text and detail sharp.

Does converting a 50-page PDF cost more than a 2-page one? No. Each call costs 1 credit, no matter how many pages get converted in that call.

What scale value should I use? The default (1.5) works for most cases. Push it toward 4 if you need to print the image or enlarge it a lot; lower it toward 0.5 if it's just a small thumbnail and you want it to stay light.

Try these tools

You'll find the full documentation for PDF to images, with examples for n8n, Make and your own code. And if you don't have an account yet, you can create one for free.