Skip to content

PDF Templates ​

In this article we cover what a PDF template is, how to design one in the document editor, and how to generate a PDF from a record once a template exists.

What a PDF template is ​

A PDF template belongs to one module (for example, Quotes or Orders) and defines a layout Cubrel uses to turn any record in that module into a PDF. Think of it as a document design you build once and reuse for every record. A module can have more than one template (say, one for Quotes and a shorter one for an Order Confirmation), with one marked as the default.

On a Starter workspace, each module can have one template. Pro and Enterprise allow any number per module.

The editor ​

From Workspace > Documents > PDF Templates, create a new template and pick the module it belongs to. The editor shows a real page at true paper size. You type straight onto it, like in a word processor.

  • Text: headings, paragraphs, lists, bold, italic, underline, links and alignment. Select text to get a small floating toolbar.
  • Blocks: type / on an empty line, or use the Block button in the toolbar, to insert columns (two to four, with adjustable widths), a divider, a spacer, a page break, the line items table, a table of related records, your company logo, an image, an address window, or a payment QR code.
  • Fields: type @, or use the Field button, to insert a value from the record. A field shows up as a small chip such as "Customer name" and is replaced by the real value when the document is generated.
  • Header and footer: click the top or bottom band of the page to edit them. They repeat on every page.

The palette on the left lists every block and field. Drag one onto the page: a line shows where it will land, and dropping into a column cell fills that column. Drag a field into a paragraph to place it inline. You can also click an item to add it at the cursor. Hover any block to reveal its handle for reordering it, and an x in its corner to remove it. Press Escape to cancel a drag.

A Setup step opens when you create a template: pick the module, name, paper size, orientation, font and accent color. The defaults are fine, and a live preview shows the page as you choose. In the editor, the Setup button in the top bar opens the same settings again, together with margins and the window guide. The panel on the right appears only while a block or field is selected and shows its settings, such as the layout of a column block or the columns of a table.

The Field picker lists the fields of the record, your company details and a few document values (today's date, the record number, the document title, and the page number in headers and footers).

Fields of a related record can be inserted only when the relationship links to a single record, for example the Account of a Quote. A relationship that can link to many records, for example the Contacts of an Account, would not say which record to use. Those relationships are available as a Related records table block instead, where you choose the columns to show.

A field chip can be shown in a different format: as a colored status pill, or as a multi-line address.

Page numbers ​

Insert the Page number field in a header or footer paragraph. In the PDF it prints as "1 / 4" in the page margin next to that header or footer, aligned like the paragraph it sits in. Text you put around it in the same paragraph, such as "Page", is kept.

Previewing ​

The switch at the top changes what you see on the page:

  • Fields shows the chips.
  • Sample data replaces the chips with made-up values.
  • Record replaces them with the values of a real record you pick.

Preview PDF renders the exact PDF, with real page breaks, headers and footers, for the current mode.

Generating a PDF from a record ​

Open any record and choose Print As PDF in its action menu, next to Edit. If its module only has one template, Cubrel generates it immediately. If there's more than one, you're shown a picker (the default template is marked) to choose which one to use.

Envelopes with a window ​

Turn on the DIN 5008 window guide under Setup, More page options, to see where the address window of a window envelope sits. Add an Address window block in the body and type the recipient address into it: it is printed at the window position of the first page.

Payment QR code ​

The Payment QR code block prints a SEPA QR code that a banking app scans to fill in a transfer to your account. Add it in the body of the page, then set in the panel on the right:

  • Amount field: the field with the amount to pay, usually the total.
  • Reference field: the field used as the transfer reference, by default the record's number, for example the Invoice Number.
  • Reference prefix: optional text placed before the reference.
  • Size: the printed size in mm.
  • Show caption: the line "Scan to pay with your banking app" with the code.

The code only prints when an IBAN is set under Workspace > Company > Banking, the currency is EUR, and the amount is above zero. It works for SEPA transfers in EUR, not in Switzerland, and not every banking app supports it.

Branding ​

Your company name, address, phone, email, website and logo come from your global company settings. Use the company fields and the Company logo block to place them. Bank details, such as the IBAN for an invoice footer, come from Workspace > Company > Banking; see Company Info and Banking.

In short ​

QuestionAnswer
Where do I manage templates?Workspace > Documents > PDF Templates
Can a module have more than one template?Yes, with one marked as default
How do I insert a field's value?Type @ or use the Field button
How do I insert a table or columns?Type / or use the Block button
Why can't I pick fields of some related records?Only relationships that link to one record offer fields; the others offer a table block
Can I preview before saving?Yes, with sample data, a real record, or an exact PDF
How do I generate a PDF from a record?Open the record and choose Print As PDF in its action menu
Why doesn't the payment QR code print?It needs an IBAN, an amount above zero, and EUR