Gtk.PrintOperation.prototype.set_n_pages
function set_n_pages(n_pages:Number):void {
// Gjs wrapper for gtk_print_operation_set_n_pages()
}Sets the number of pages in the document.
This <emphasis>must</emphasis> be set to a positive number before the rendering starts. It may be set in a Gtk.begin-print signal hander.
Note that the page numbers passed to the Gtk.request-page-setup and Gtk.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.
Since 2.10
- n_pages
the number of pages