HTML blocks

Updated November 9, 2026

An HTML block holds HTML you write or paste. Use it for what a text block can’t do: images such as a logo or signature graphic, tables, boxes with borders and backgrounds.

  1. Click + Add HTML Block. The editor opens.
  2. Paste or type your HTML. Merge tags such as {Name:1} work here too.
  3. Click Save & Close, then drag the block’s row to where it belongs.

In the builder, the block shows an HTML BLOCK badge and the start of its text. A block with only an image shows <html>; an empty block shows (empty HTML block).

What’s allowed

AllowedRemoved when you save
Headings, paragraphs, lists, links, div and spanscript tags and JavaScript
Tables, including borders and cell paddingiframe, embeds and video
Images (img)Forms and form inputs
Inline styles (style="…")style tags; use inline styles instead

Images

  • Use the image’s full address, starting with https://, for example from your Media Library (open the image and copy its File URL).
  • The image must be reachable when the PDF is made. Images on private or password-protected pages won’t load.
  • Set the size with width, for example <img src="https://…/logo.png" width="200">.

Styling

PDFs are drawn by mPDF, which understands most simple CSS: colors, fonts, borders, padding, margins, widths, text alignment and tables. It doesn’t support modern layout CSS such as flexbox or grid. To place things side by side inside an HTML block, use a table, or put separate blocks side by side in a row.

Check every HTML block with Preview. What the browser shows and what mPDF prints can differ.

Was this page helpful?
Scroll to top