Guides
Welcome
First steps
Getting started
Processing a PDF
Common functions
Topics
Encrypt files
Error handling
Tool guides
Merge PDF Guide
Split PDF Guide
Compress PDF Guide
Convert Office to PDF Guide
Convert PDF to JPG Guide
Convert Images to PDF Guide
PDF to PDF/A Guide
HTML to PDF Guide
Validate PDF/A Guide
Rotate PDF Guide
Unlock PDF Guide
Protect PDF Guide
Watermark PDF Guide
Add Page Numbers Guide
Repair PDF Guide
Extract Text Guide
Edit PDF Guide
Convert PDF to JPG Guide
How to convert PDF files to images in your application using iLovePDF’s REST API.
Remember that in order to use our Tool Guides, you need to have previous knowledge about the basics to
processing a PDF with our REST API. We strongly recommend that you read the Processing a PDF guide
before starting this one.
Basic PDF to JPG conversion
Here is a simple example of how to convert all pages of a couple of PDF files to JPG images:
Basic PDF to JPG conversion
Advanced PDF to JPG conversion
There is one single property pdfjpg_mode you can set to customize the conversion to JPG:
Advanced PDF to JPG conversion
pdfjpg_mode is a property which allows you to choose how to convert your documents using one of these two parameters:
- pages converts every page to a JPG image
- extract extracts every embedded image as JPG image
You can see in the example how all the images inside the uploaded files will be extracted to JPG files.