PrintPdfRenderer class

Turns a PrintTemplate into a PDF document.

The template design is drawn element by element with the units of the designer: positions, sizes, font sizes and stroke widths are millimetres. When the paper cell differs from the design size, the design is stretched to fill the cell and fonts follow the smaller of the two ratios.

Preview and print use the same bytes, so what the user sees on screen is exactly what reaches the printer.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

render(PrintRequest request) → Future<Uint8List>