PaperSize.from_ppd


Description:

[ CCode ( has_construct_function = false ) ]
public PaperSize.from_ppd (string ppd_name, string ppd_display_name, double width, double height)

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.

Parameters:

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 `GtkPaperSize`, use [method@Gtk.PaperSize.free] to free it