Gtk.PageSetup.prototype.set_paper_size_and_default_margins

function set_paper_size_and_default_margins(size:Gtk.PaperSize):void {
    // Gjs wrapper for gtk_page_setup_set_paper_size_and_default_margins()
}

Sets the paper size of the Gtk.PageSetup and modifies the margins according to the new paper size.

Since 2.10

size

a Gtk.PaperSize