Image tagging element

Use the Image tagging element to dynamically insert images into your generated documents. Image tagging elements act as placeholders for image data fields and allow you to control how images are scaled and positioned when rendered in the generated document.

Prerequisites

Bind Image tagging element to data

Before you can configure image sizing, bind the Image tagging element to a binary data field containing image data. For detailed steps, see Bind tagging element to data.

Configure Size Mode

By selecting the Size Mode, you can control how the image is scaled and positioned when rendered in the generated document.

  1. Select the Image tagging element to view its properties.
  2. In the Properties pane, locate the Size Mode property. Select one of the following options from the dropdown:
    • Use placeholder size - Forces the image to exactly match the placeholder dimensions, ignoring the original image aspect ratio
    • Fit placeholder - Scales the image to fit within the placeholder while maintaining the original aspect ratio
    • Fit placeholder width - Scales the image to match the placeholder width while maintaining the original aspect ratio (height adjusts automatically)
    • Fit placeholder height - Scales the image to match the placeholder height while maintaining the original aspect ratio (width adjusts automatically)
    • Use image size - Displays the image at its original dimensions, ignoring the placeholder size
    • Try use image size or fit placeholder - Attempts to use the original image size, but scales down to fit the placeholder if the image is larger than the placeholder
  3. Review results in Live Preview pane.

Properties pane showing the Size Mode dropdown with six sizing options for controlling image display.

Apply visual formatting

You can specify visual formatting rules on the Image tagging element to control the visual appearance of text within the Image tagging element in a dynamic, data-driven manner. For detailed steps, see Apply visual formatting to tagging elements.

Next steps