You are here:
Add Custom Images
To render logos, icons, and custom images in a PDF print, declare image attributes in the PrintLayout contract.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
To render logos, icons, and custom images in a PDF print, declare image attributes in the PrintLayout contract.
| Available in Lightning Experience in Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled. |
The supported attributes are:
| Attribute | Description | Data Type | Required |
|---|---|---|---|
| name | Unique name of the image. | String | Yes |
| type | Specify Image. | String | — |
| mimeType | Corresponds to the image type specified in Modeler for the selected imageId. | String | — |
| imageID | Specify the image ID corresponding to the image ID available in the model. The supported types are PNG and SVG. | String | Yes |
If the print engine cannot resolve an image at runtime, a broken image icon is shown. Also, image attachments are not supported.
<Declarations>
<DataDeclaration name="myLogo" type="Image" mimeType="image/png" imageId="myLogo"></DataDeclaration>
</Declarations>In an <img> tag, use the image myLogo with this syntax:
<img
src="{{path=Declarations::myLogo}}"/>
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.