Block Types
Choose the right content, layout, logic, and page blocks for your document.
User guide navigation
On this page
Block Types
In the Epistola editor you build a template from blocks. Choose a block based on the result you want. Then set its content, data expression, or layout in the inspector.
Add content
| Block | Use it for |
|---|---|
| Text | Fixed wording, headings, rich formatting, and inline expression chips such as customer.name. |
| Rich Text Block | Render a supplied rich-text field as paragraphs or lists. Use this for block rich text, not an inline chip. |
| Image | An image uploaded to a catalog. Set its size and alt text in the inspector. Use Keep With Next to keep a logo or chart on the same page as the block after it. |
| QR Code | A QR code whose value comes from a data expression. |
| Separator | A horizontal rule between sections. Configure its width, thickness, color, and style. |
Arrange content
| Block | Use it for |
|---|---|
| Container | Group child blocks so they can share layout or styling. Set a Min Height when the group needs at least a certain amount of space. |
| Columns | Place child blocks side by side with configurable column widths. Each column can have its own background, padding, border, and Vertical Align. |
| Table | Present structured content in columns. Cells support rich text and expressions, and column widths can be adjusted. Style selected cells with Cell Style. |
| Stencil | Insert a stencil from a catalog, such as a signature or legal text. A change to the stencil reaches every template that uses it. |
| Placeholder | Reserve a named slot in a stencil for content supplied by the containing template. |
Repeat or conditionally show content
| Block | Use it for |
|---|---|
| Conditional | Show the body when an expression is true, and the optional else branch when it is false. |
| Loop | Repeat child blocks for every item in a data array. Use an item variable inside the repeated content. |
| Data List | Render an array as a repeated list. Choose bullets, numbers, letters, Roman numerals, or no marker, and design one item template. |
| Data Table | Render one row per object in an array with column headers, widths, and an item alias. |
Which one to choose?
- Table for a fixed grid.
- Data Table for one row per input record.
- Data List when each input item should appear as a list entry.
Control the page
| Block | Use it for |
|---|---|
| Page Break | Force a new page at a specific position in the document. |
| Page Header | Add content that repeats at the top of each page. |
| Page Footer | Add content that repeats at the bottom of each page. You can hide it on the first page. |
| Address Block | Position recipient information for a window envelope, with additional content flowing alongside it. |
Choosing a block
Start with Text for fixed content. If part of the wording comes from data, add expression chips. Use Conditional, Loop, and Data List only when something must appear, disappear, or repeat based on data.
Keep fragments you reuse in Stencils. Use page blocks only for content whose position or repetition is tied to the PDF page.
Use a task guide
- Repeat data: Data List, Data Table, and Loop.
- Show or hide a paragraph: Conditional.
- Page layout: headers, footers, and page numbers.
- Stencils: reusable fragments and parameters.
Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →