/ Search

Search Epistola

Find documentation, integration guides, tour steps, blog posts and pages.

DocsIntegrationsTourBlogPage
↑↓↵esc

Work in progress — The Learn section is being expanded; alpha, beta, and preview capabilities are labelled where relevant.
← Back to Learn

Edit in the visual editor

Build the document body, add reusable parts, fill it with example data, and preview the PDF.

authoringeditor

Edit the document

The visual editor is where the template becomes a document. You build it from blocks on a canvas and arrange the structure in a tree. A PDF preview beside your work shows the result. The canvas shows your structure; the preview shows what the generated PDF will actually look like.

Steps

  1. Open the template, choose Open editor on the variant, and choose an example with realistic data.
  2. Add the blocks you need from the palette.
  3. Insert fields where case information should appear.
  4. Arrange the document in the structure tree and style blocks in the inspector.
  5. Use stencils for standard fragments that many templates share.
  6. Preview the PDF, fix what looks wrong, and save.

The workspace

  • Block palette — add content, layout, logic, and page blocks.
  • Canvas — edit the content and formatting of the selected block.
  • Structure tree — review the document order and move blocks into place.
  • Inspector — set properties and styling for the selected block or table cell.
  • PDF preview — the rendered document, refreshing shortly after each change. Drag the divider to resize it, or close the panel while you work on the structure.

Choosing the right block

Start with text for wording that never changes. Use a field only where the document pulls in case data. Use a table when the data is a set of column-based records. Use a Data List when each item in an array should become one line in a list. Tables and Data Lists look similar but solve different problems.

Conditional blocks, loops, and Data Lists exist for content whose visibility or repetition depends on the data. If nothing varies, ordinary blocks are simpler and easier to maintain.

Keep standard fragments in a stencil instead of copying them between templates. Use page blocks only when the position or repetition of content is tied to the printed page.

Blocks

Text and headings carry rich formatting, and lists come in several formats. The details are under Reference: limits and details at the bottom of this page.

Tables present column-based records. A single cell, or a selection of cells, can have its own background, alignment, and borders.

Images and QR codes are managed content, not pasted screenshots, so they stay maintainable. Separators, containers, and columns handle visual grouping and page layout.

Conditional blocks choose content based on an expression. The body shows when the condition holds, and the else branch shows when it does not. Loops repeat content for every item in an array. A Data List renders an array as a formatted list with the marker style you choose.

Page blocks work at the page level. A document can have up to two page headers. The first applies to page one; the second runs on later pages. There is one footer, and you can hide it on the first page.

The address block positions recipient information for a window envelope. A document has at most one. It belongs directly after the header, because content placed before it can overlap the window area.

Keeping content together on the page

Most blocks have two page-flow options:

  • Keep a block together, so it does not split across a page boundary.
  • Keep it with the next block, so no page break falls between them.

The usual candidates are a signature, a short table, or a heading that belongs to the block beneath it. You set both options in the inspector, beside the block’s other properties.

Images, QR codes, and separators never split across a page, so they do not offer the first option. An image can still keep with the next block, so a logo or chart stays with the text after it.

Bringing in the data

Fields and examples come from the data contract. You configure the contract outside the visual editor. The field picker offers the fields the contract declares, up to five levels deep. Inside a loop, the item’s fields are available through the loop’s alias. Page blocks can use the current page number and the total page count.

You write expressions in JSONata. A builder mode lets you select fields, and a code mode handles more advanced logic. The expression dialog previews the result against the example you selected.

Reusable parts

A stencil is a maintained fragment, such as a signature, a legal paragraph, or a branded footer. The template refers to the stencil; it does not copy it. You change the content with Edit Stencil, and the change reaches every template that uses the stencil. A release you already published keeps the stencil as it was when you published. A stencil can contain other stencils.

Saving and undo

Your work saves automatically while you edit, and Ctrl+S saves immediately.

If a save fails, the editor shows Not saved: with the reason and offers Retry save. If someone else saved the same variant in the meantime, the editor asks whether to replace their version or reload it.

Undo and redo work separately for structural changes and for rich-text editing. Undoing a sentence therefore does not undo the block you just moved. If you leave with unsaved changes, the browser warns you.

Saving puts your work in the catalog’s Next release. Saved is not published. Once the document is approved, someone publishes the catalog with Publish… in the bar at the top. Only then do applications get your change.

If your tenant has the Quality feature switched on (alpha, off by default), Epistola checks the text for clear language a few seconds after each save. The findings are on the Quality tab.

If the selected example does not match the contract, the preview reports the problem instead of rendering.

Checks before you publish

  • Does the preview fit on the page?
  • Are long names, addresses, and repeated rows handled well?
  • Are optional paragraphs shown and hidden correctly?
  • Do blocks that must not split — a signature, a short table — keep together?
  • Are headers and footers right, including the first page?
  • Are standard fragments still current?
  • Does the document use the correct theme and font?

Do not publish until the preview is readable with the examples that matter most.

In short

  • You build the document from blocks on the canvas, arrange it in the structure tree, and check the result in the PDF preview.
  • Choose the simplest block that fits: text for wording that never changes, fields for case data, conditional blocks and loops only where content depends on the data, and stencils for shared fragments.
  • Saved is not published: your work goes into the catalog’s Next release until someone publishes the catalog.

Reference: limits and details

Look these details up when you work on a specific block.

  • Text formatting: bold, italic, underline, strikethrough, and sub- and superscript. Sub- and superscript exclude each other.
  • Lists: decimal, letter, and Roman-numeral formats, with disc, circle, square, or dash markers. Tab nests an item into a sub-list; Shift-Tab lifts it back out.
  • Line breaks: Shift+Enter inserts a hard break inside a block instead of starting a new one.
  • Tables: the insert dialog goes up to 50 rows and 20 columns, and you can add more rows or columns afterwards.
  • QR codes: a QR code can hold up to 2,500 bytes of data.
  • Containers and columns: a container can have a minimum height. Table cells and columns can have a vertical alignment, and each column of a columns block can have its own background, padding, and border.
  • Page headers: to swap which header is which, drag them within the header zone.

Try it yourself

Open the editor with a demo template

A free account is required. Here's how

More on this topic

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 →