PrintCompositor.setPrintHeader

Sets whether you want to print a header in each page.

The header consists of three pieces of text and an optional line separator, configurable with gtksource.print_compositor.PrintCompositor.setHeaderFormat.

Note that by default the header format is unspecified, and if it's empty it will not be printed, regardless of this setting.

This function cannot be called anymore after the first call to the gtksource.print_compositor.PrintCompositor.paginate function.

class PrintCompositor
void
setPrintHeader
(
bool print
)

Parameters

print bool

true if you want the header to be printed.