Pike v8.1 release 6

Method GTK2.SourcePrintJob()->set_text_margins()


Method set_text_margins

GTK2.SourcePrintJob set_text_margins(float top, float bottom, float left, float right)

Description

Sets the four user margins for the print job. These margins are in addition to the document margins provided in the GnomePrintConfig and will not be used for headers, footers, or line numbers (those are calculated separately). You can print in the space allocate by these margins by connecting to the "begin-page" signal. The space is around the printed text, and inside the margins specified in the GnomePrintConfig.

The margin numbers are given in device units. If any of the given values is less than 0, that particular margin is not altered by this function.