lino.modlib.weasyprint

This plugins installs two build methods for generating printable documents using weasyprint.

See weasyprint: Printing documents using WeasyPrint.

(This module's source code is available here.)

Classes

Plugin(site, app_label, app_name, ...)

See Introduction to plugins.

class lino.modlib.weasyprint.Plugin(site, app_label, app_name, app_module, needed_by)

Bases: lino.core.plugin.Plugin

See Introduction to plugins.

header_height = 20

Height of header in mm. Set to None if you want no header.

footer_height = 20

Height of footer in mm. Set to None if you want no header.

top_right_width = None

Width of top-right.jpg in mm. If not given, Lino computes it based on height.

top_right_image = None

The first image file found in config named either top-right.jpg or top-right.png.

header_image = None

The first image file found in config named either header.jpg or header.png.