# PDF to image

<mark style="color:orange;">**doc\_page=X**</mark>

When you provide a link to a PDF file, the first page is converted to an image and delivered via CDN. You can use all available [resizing operations](https://docs.cloudimage.io/go/cloudimage-documentation-v7/en/image-resizing), [image filters](https://docs.cloudimage.io/go/cloudimage-documentation-v7/en/image-filters), [watermarking capabilities](https://docs.cloudimage.io/go/cloudimage-documentation-v7/en/watermarking), and [image compression formats](https://docs.cloudimage.io/go/cloudimage-documentation-v7/en/image-compression). To convert a specific page of the PDF document, use the **doc\_page=X** option:

| Preview                          | Syntax                                                                                                                                                                                                                                                                         |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ![](/files/aPEkRmCaDQc7QX1LXZON) | [/samples.scaleflex.com/satie2.pdf?<mark style="color:orange;">**w=800**</mark>&<mark style="color:green;">**force\_format=png**</mark>](https://doc.cloudimg.io/https://samples.scaleflex.com/satie2.pdf?w=800\&force_format=png)                                             |
| ![](/files/KBzMuXoAIwessfWRTWsB) | <p></p><p><a href="https://doc.cloudimg.io/https://samples.scaleflex.com/satie2.pdf?w=800&#x26;doc_page=2">/samples.scaleflex.com/satie2.pdf?<mark style="color:orange;"><strong>w=800</strong></mark>&<mark style="color:orange;"><strong>doc\_page=2</strong></mark></a></p> |


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudimage.io/transformations/static-content/pdf-to-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
