PaperSize.newFromPpd

gtk.paper_size.PaperSize newFromPpd(string ppdName, string ppdDisplayName, double width, double height)

Creates a new [gtk.paper_size.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.paper_size.PaperSize] object.

Parameters

ppdNamea PPD paper name
ppdDisplayNamethe corresponding human-readable name
widththe paper width, in points
heightthe paper height in points

Returns

a new [gtk.paper_size.PaperSize], use [gtk.paper_size.PaperSize.free]

to free it