[ Version ( since = "2.10" ) ]
public void set_n_pages (int n_pages)
Sets the number of pages in the document.
This must be set to a positive number before the rendering starts. It may be set in a [signal@Gtk.PrintOperation:
GtkPrintOperation:begin-print] signal handler.
Note that the page numbers passed to the [signal@Gtk.PrintOperation:GtkPrintOperation:request-page-setup] and [
signal@Gtk.PrintOperation:GtkPrintOperation:draw-page] signals are 0-based, i.e. if the user chooses to print all pages, the
last draw_page signal will be for page n_pages - 1.
| this |
a `GtkPrintOperation` |
| n_pages |
the number of pages |