Skip to content

convertTemplateUnit()

function convertTemplateUnit(template, to): void;

Converts every length in a template to another unit (positions, sizes, band heights, margins, page size, padding, corner radii). Font sizes and border widths are in points and stay unchanged. Mutates the template.

Parameter Type
template ReportTemplate
to "mm" | "cm" | "in" | "pt" | "px"

void