setHeaderFormat

open fun setHeaderFormat(separator: Boolean, left: String? = null, center: String? = null, right: String? = null)

Sets strftime like header format strings, to be printed on the left, center and right of the top of each page.

The strings may include strftime(3) codes which will be expanded at print time. A subset of strftime() codes are accepted, see method@GLib.DateTime.format for more details on the accepted format specifiers. Additionally the following format specifiers are accepted:

  • #N: the page number

  • #Q: the page count.

Parameters

separator

true if you want a separator line to be printed.

left

a format string to print on the left of the header.

center

a format string to print on the center of the header.

right

a format string to print on the right of the header.