Package: gtk

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

Lambda List

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

Arguments

printer -- a gtk:printer object
size -- a gtk:paper-size instance

Return Value

top -- a double float with the top margin
bottom -- a double float with the bottom margin
left -- a double float with the left margin
right -- a double float with 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

2024-7-6