How to use the Gallery Component to display images in PDFs
The Gallery Component allows you to add images* to your template.
When editing the Gallery Component you will see different sections and settings. Here is an overview of what these are and how to use them.
*Other assets can still be added using the Attribute Component
This is found at the very bottom of the component editor to allow you space to add one attribute. This will only show media gallery attributes you have added to your PDF template.
Add a new attribute by clicking the ADD button.
Add this first when editing your component in order to see your images in the preview. This will make it easier to visualize the styles you apply.
Remove an attribute by hovering over the attribute and clicking the TRASH CAN button.
The Title serves two purposes: (1) to identify the component in the component list, and (2) to be used within the template itself as a section header.
If you wish to show the Title as a section header, turn on the SHOW TITLE switcher as shown below. This option will also allow you to customize the font and size of the section header.
The Component Layout allows you to decide how much space the component will occupy. 100% will take the whole width of the column, while 50% will take half of the column.
When 50% is applied, there is space for another 50% component right next to it. This way you can create descriptions with an image next to it, or a two column description.
Here you can see a single image design Gallery Component at 50% with a 50% Attribute Component next to it:
There are a few pre-defined image layouts. Choose the one you want to appear in your PDF. The maximum number of images is 6.
Width allows you to change the size of the image based on the space they occupy in the template.
100% will take the full width of the component space.
Below 100% will also allow you to set the alignment of the images either Right, Left, or Center.