Insert image to PDF action allows you to insert image to your PDF file. Supported .PNG files.
Example of Insert image to PDF action configuration on the current site
For more information about Action Builder read Action Builder introduction article.
To configure the action Insert image to PDF additional properties should be specified:
Configuration
| Property | Required | Type | Description |
| Library | yes | Choice |
A library where pdf file we want to insert into is located. It is possible to select:
|
| Item Id | yes | Integer | The item Id of the PDF document |
| Image source | yes | Choice | Select image source: Base64 or Library |
| Image Base64 | yes | String | Insert Base64 string |
| Source Library | yes | Choice |
A library where image is located. It is possible to select:
|
| Source Item Id | yes | Integer | The source item is the image we want to insert |
|
Target page |
yes | Choice |
Specify the page we want to insert image to:
|
| Page number | no | Integer | Specify the existing page number. By default page number 1 is used |
| Horizontal align | yes | Choice |
Select horizontal alignment where to insert image to:
|
| Vertical align | yes | Choice |
Select vertical alignment where to insert image to:
|
| Horizontal offset | no | String | Specify horizontal offset of the image. Can be positive or negative integer in pixels |
| Vertical offset | no | String | Specify vertical offset of the image. Can be positive or negative integer in pixels |
| Image width | no | String | Specify the width of the inserted image |
| Image height | no | String | Specify the height of the inserted image |
Availability
| Modern Forms | List Actions | Scheduled/Triggered Actions |
| ✓ | ✓ | ✓* |
* In Scheduled/Triggered actions only inserting image to PDF from the current site's libraries is available.
Output
| Output Parameter | Type | Description |
| ItemID | Number | Returns the Id of the document in a library as output parameter and can be used in subsequent actions. |
| FileName | String | Returns the file name of document |
| Url | String | Absolute Url to the document in a library. Starts with 'https://' |
| ServerRelativeUrl | String | Server relative path to the document in a library. Starts with '/' |