Image component

The image component lets you add static and dynamic images to your PDF template.

Static images

To add a static image to your image component, you can upload an image from your device or specify an image URL.

To upload a static image:

  • Select the image component
  • Click on the 'Upload Image' button in the Properties section
  • Choose an image from your device

Please note that all images you upload via this method will be stored in a publicly accessible AWS S3 bucket.

To specify an image from a URL, add the image URL to the 'Image Source' input:

Dynamic images

To add a dynamic image to your PDF, add a variable wrapped in {{ }} to the 'Image Source' input:

When making a POST call to the DocuPotion API, include the variable you added to the input and an image URL as a key/value pair:

{
  "myImage":"https://cdn.prod.website-files.com/62bc3ad74300ba0e3a51d0f3/6541d7516d471cc2687cce67_Asset%201%201.svg"
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.