Printer.getHardMargins

bool getHardMargins(out double top, out double bottom, out double left, out double right)

Retrieve the hard margins of printer.

These are the margins that define the area at the borders of the paper that the printer cannot print to.

Note

This will not succeed unless the printer’s details are

available, see [gtk.printer.Printer.hasDetails] and [gtk.printer.Printer.requestDetails].

Parameters

topa location to store the top margin in
bottoma location to store the bottom margin in
lefta location to store the left margin in
righta location to store the right margin in

Returns

true iff the hard margins were retrieved