Gtk.PrintOperationPreview.prototype.render_page

function render_page(page_nr:Number):void {
    // Gjs wrapper for gtk_print_operation_preview_render_page()
}

Renders a page to the preview, using the print context that was passed to the Gtk.PrintOperation::preview handler together with preview.

A custom iprint preview should use this function in its ::expose handler to render the currently selected page.

Note that this function requires a suitable cairo context to be associated with the print context.

Since 2.10

page_nr

the page to render