Betterprint-specific Jinja examples
Let's try to use some basic & helpful features in Frappe Betterprint you need to know.
Last updated
Let's try to use some basic & helpful features in Frappe Betterprint you need to know.
Last updated
Betterprint comes with a easy-to use page-break - just add this line to your Print Format Jinja:
In order to add a header, you can use a paginate-source
element with data-key="header"
:
You can set the header's height by simply adding this css snippet:
Frappe Betterprint contains two reserved data-source keywords: pageNumber
and totalPages
. In order to use these, simply add this Jinja:
Betterprint allows fully custom page sizes. Even really large sheets will be no problem. You can define your page size as follows:
You need to specify the page size using width and height. Passing any page size like A4 or Letter won't work as of now.