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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
template |
ReportTemplate |
to |
"mm" | "cm" | "in" | "pt" | "px" |
Returns
Section titled “Returns”void