PaperSize.newFromPpd

Creates a new #GtkPaperSize 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 #GtkPaperSize object.

class PaperSize
static
newFromPpd
(
string ppdName
,,
double width
,
double height
)

Parameters

ppdName string

a PPD paper name

ppdDisplayName string

the corresponding human-readable name

width double

the paper width, in points

height double

the paper height in points

Return Value

Type: gtk.paper_size.PaperSize

a new #GtkPaperSize, use gtk.paper_size.PaperSize.free to free it