PDF to images
The Visual PDF API allows you to create your own solution for transforming PDF files into images. Find out how in this guide.
Basic PDF to images transformation
To convert a PDF to images you need to use a pipeline with a pdf-to-images task.
// Creating the form data for the pipeline
const form = new FormData();
form.append('tasks', [{ tool: 'pdf-to-images' }]);
And it's that simple!
As output from this task, you will get an image file for each page of the input PDFs.
Specify pages to convert
You may want to only convert some of the PDF pages. To do so, use the pages options:
options: { pages: [0, {range: [4, 'last']}] },