Gtk.PrintOperation::begin-print

function callback(print_operation, context:Gtk.PrintContext, ):void;

Emitted after the user has finished changing print settings in the dialog, before the actual rendering starts.

A typical use for ::begin-print is to use the parameters from the Gtk.PrintContext and paginate the document accordingly, and then set the number of pages with Gtk.PrintOperation.prototype.set_n_pages.

Since 2.10

print_operation

instance of Gtk.PrintOperation that is emitting the signal

context

the Gtk.PrintContext for the current operation