Package: gtk

Function gtk:printer-hard-margins-for-paper-size

Lambda List

gtk:printer-hard-margins-for-paper-size (printer size)

Syntax

(gtk:printer-hard-margins-for-paper-size printer size) => top, bottom, left, right

Arguments

printer -- a gtk:printer object
size -- a gtk:paper-size instance
top -- a double float for the top margin
bottom -- a double float for the bottom margin
left -- a double float for the left margin
right -- a double float for the right margin

Details

Retrieve the hard margins of printer for size. The hard margins define the area at the borders of the paper that the printer cannot print to.

Notes

This will not succeed unless the details of the printer are available, see the gtk:printer-has-details and gtk:printer-request-details function.
 

See also

2025-07-26