> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-tools/file-creation-and-conversion/pdf-to-image.md).

# PDF to Image

Convert PDF pages to PNG or JPEG images. Use it when a later step needs the appearance of a page, such as image analysis.

## Use this tool

1. Provide **PDF File URLs**, separated by commas, newlines, or semicolons.
2. Select **Image Format** and **DPI (Resolution)**.
3. Run the tool and inspect **Processed Files** for images grouped by source file.
4. Use **Image URLs** when the next step needs one flat list of all page images.

## Behavior and limits

Each page becomes a separate image. Available resolutions are 150, 300, and 800 DPI; higher DPI produces larger images. The tool documents a maximum page count of 20 and a total file-size limit of 256 MB. Split large source files before conversion.

## Inputs

| Field                    | Parameter   | Description                                                                                                                                            |
| ------------------------ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| PDF File URLs (required) | `file_urls` | The URLs of the PDF files to convert to images, separated by commas, newlines, or semicolons. Maximum page count: 20. Maximum total file size: 256 MB. |

## Configuration

| Field                   | Parameter      | Description                                |
| ----------------------- | -------------- | ------------------------------------------ |
| Image Format (required) | `image_format` | The output image format                    |
| DPI (Resolution)        | `dpi`          | The resolution (DPI) for the output images |

## Outputs

| Field           | Parameter         | Description                                    |
| --------------- | ----------------- | ---------------------------------------------- |
| Processed Files | `processed_files` | List of processed files                        |
| Image URLs      | `image_urls`      | List of all urls, without grouping by filename |

## Related guides

* [File Uploads, Generated Files, and Downloads](https://docs.stackai.com/technical-reference/interfaces-and-conversations/file-uploads-generated-files-and-downloads.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/stackai-tools/file-creation-and-conversion/pdf-to-image.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
