Skip to content

Formatting

All formatting options can be set in the Options section of the Template editor.

Landscape orientation

This option changes the orientation of the document from portrait (default) to landscape.

Paper size

The paper size can be set to one of the following options:

Size Dimensions (inches) Dimensions (mm)
Letter 8.5 x 11 216 x 279
Legal 8.5 x 14 216 x 356
Tabloid 11 x 17 279 x 432
Ledger 17 x 11 432 x 279
A0 33.1 x 46.8 841 x 1189
A1 23.4 x 33.1 594 x 841
A2 16.5 x 23.4 420 x 594
A3 11.7 x 16.5 297 x 420
A4 8.3 x 11.7 210 x 297
A5 5.8 x 8.3 148 x 210
A6 4.1 x 5.8 105 x 148

Margins

The margins can be set to any value in (mm). The top, right, bottom, and left margins are set independently.

The header and footer can be defined with CSS and HTML. The header will be displayed on every page of the document.

The header and footer are not displayed in the editor, but they will be displayed in the generated PDF document.

Info

If you want to set a Header or Footer in your document, you should set the top and bottom margins to a higher value, so the header and footer have enough space to be displayed.

This is an example of a footer that displays the page number at the right side of the page:

Footer of your template, in the Options sections
<style>
.footer {
    display: flex;
    justify-content: flex-end;
    margin-left: 10mm;
    margin-right: 10mm;
    font-size: 12px;
    text-align: center;
    width: 100%;
    gap: 1mm;
}
</style>
<div class="footer">
    <span class="pageNumber"></span><span>from</span><span class="totalPages"></span>
</div>

Limitation

You must define all the CSS used in your header and footer manually. Currently, it is not possible to use external stylesheets here, nor load any external resources like images or fonts through URLs.