# Add an Image to the Page

Adds an image to the page at the specified coordinates.

<table data-header-hidden><thead><tr><th width="236" valign="top"></th><th width="311" valign="top"></th></tr></thead><tbody><tr><td valign="top">Image file name</td><td valign="top">[Text] The name of the image file. You can enter the full file name including the path.</td></tr><tr><td valign="top">PDF file name</td><td valign="top">[Text] The name of the PDF file. You can enter the full file name including the path.</td></tr><tr><td valign="top">Page number</td><td valign="top">[Number] The page number to which the image should be added. Numbering starts from 1. If the value is not specified, the image will be added to the last page.</td></tr><tr><td valign="top">X coordinate</td><td valign="top"><p>[Number] The X coordinate where the image will be added (in pixels). Coordinates are calculated relative to the page size at 300 DPI.</p><p>For example, the width of an A4 page at 300 DPI is 2480.</p></td></tr><tr><td valign="top">Y coordinate</td><td valign="top"><p>[Number] The Y coordinate where the image will be added (in pixels). Coordinates are calculated relative to the page size at 300 DPI.</p><p>For example, the height of an A4 page at 300 DPI is 3508.</p></td></tr><tr><td valign="top">Position as center</td><td valign="top">When enabled, the specified position of the image will be taken as the center of the image.</td></tr><tr><td valign="top">Path to the final PDF file</td><td valign="top">[Text] The path to the final PDF file with the added image. If the value is empty, the current file will be overwritten.</td></tr><tr><td valign="top">New image width</td><td valign="top">[Number] The new width of the image. If the value is not specified or is zero, the width of the image will change proportionally to the height. Otherwise, the width of the image will remain the same.</td></tr><tr><td valign="top">New image height</td><td valign="top">[Number] The new height of the image. If the value is not specified or is zero, the height of the image will change proportionally to the width. Otherwise, the height of the image will remain the same.</td></tr><tr><td valign="top">Final file</td><td valign="top">[Text] The name of the PDF file to which the image has been added.</td></tr><tr><td valign="top">Error handling level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message level</td><td valign="top"><p>Select the message level that blocks will output during operation. Possible values:</p><ul><li>"Default" - default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error message</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>


---

# 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.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/pdf-pdf-automation/dobavit-izobrazhenie-na-stranicu-addimagetopage.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.
