Printer.getHardMargins

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.

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

Parameters

top double

a location to store the top margin in

bottom double

a location to store the bottom margin in

left double

a location to store the left margin in

right double

a location to store the right margin in

Return Value

Type: bool

true iff the hard margins were retrieved