Printer.getHardMarginsForPaperSize

Retrieve the hard margins of printer for paper_size.

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
getHardMarginsForPaperSize
(,
out double top
,
out double bottom
,
out double left
,
out double right
)

Parameters

paperSize gtk.paper_size.PaperSize
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