Function

GtkPaperSizenew_from_ppd

since: 2.10

Declaration [src]

GtkPaperSize*
gtk_paper_size_new_from_ppd (
  const gchar* ppd_name,
  const gchar* ppd_display_name,
  gdouble width,
  gdouble height
)

Description [src]

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.

Available since: 2.10

Parameters

ppd_name

Type: const gchar*

A PPD paper name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
ppd_display_name

Type: const gchar*

The corresponding human-readable name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
width

Type: gdouble

The paper width, in points.

height

Type: gdouble

The paper height in points.

Return value

Type: GtkPaperSize

A new GtkPaperSize, use gtk_paper_size_free() to free it.

The caller of the function takes ownership of the data, and is responsible for freeing it.