---
description: Convert your PDF file into image.
---

# PDF to image

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2Fee6adoHC0RdW7fIajSsD%2Fimage.png?alt=media&#x26;token=76e72b57-d523-42b7-afd3-7f036a3ed213" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2Fq7AJrJWRrF6GvYzmyOXB%2Fimage.png?alt=media&#x26;token=fa936745-9ef6-444d-bb25-4b7816a7b21b" alt=""><figcaption></figcaption></figure>

## Description

**What it does** This component enables you to convert your PDF files into image formats effortlessly. By using this feature, you can transform each page of your PDF into high-quality images, such as JPEG or PNG. This conversion process is particularly useful for scenarios where you need to integrate or share visual representations of your documents, such as in presentations, websites, or social media. It also facilitates easier viewing and editing of document content in image form, making it accessible for applications that require image inputs rather than text-based formats.

The PDF to image component has the identifier of pdf-img-**X**, where **X** represents the instance number of the PDF to image component.



**When to use it?** Perhaps you want to display pages of a PDF brochure on a website or use image-processing techniques on PDF content. This node handles the conversion seamlessly.



## Component settings

| Parameter Name  | Description                                                           |
| --------------- | --------------------------------------------------------------------- |
| Input           | The PDF file that will be converted into images                       |
| Pages per image | <p>The number of pages is merged into one image.</p><p>Range: 2➝n</p> |

## Advanced configurations

| Options        | Description                                                                                                                                                                                                               |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enable caching | This option determines whether the results of the component are cached. This means that on the next run of the Flow, Diaflow will utilize the previous computed component output, as long as the inputs have not changed. |
| Caching time   | <p>Only applicable if the "Enable Caching" option has been enabled.<br>This parameter controls how long Diaflow will wait before automatically clearing the cache.</p>                                                    |

## Use case

Here is a simple use case of the PDF to image component, where the PDF to image component is being used to generate images files from an input PDF.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2F6J2jWbPaitwCK5tf4zIs%2Fimage.png?alt=media&#x26;token=bbaa682d-db38-4d30-b49b-c88fa715ee90" alt=""><figcaption></figcaption></figure>
