iLovePDF Developers
Log in Sign up

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.