Gtk.PaperSize.new_from_ppd

function new_from_ppd(ppd_name:String, ppd_display_name:String, width:Number, height:Number):Gtk.PaperSize {
    // Gjs wrapper for gtk_paper_size_new_from_ppd()
}

Creates a new Gtk.PaperSize object by using PPD information.

If ppd_name is not a recognized PPD paper name, ppd_display_name, width and height are used to construct a custom Gtk.PaperSize object.

Since 2.10

ppd_name

a PPD paper name

ppd_display_name

the corresponding human-readable name

width

the paper width, in points

height

the paper height in points

Returns

a new Gtk.PaperSize, use Gtk.free to free it