gtkPageSetupNewFromFile {RGtk2} | R Documentation

## gtkPageSetupNewFromFile

### Description

Reads the page setup from the file `file.name`. Returns a new `GtkPageSetup` object with the restored page setup, or `NULL` if an error occurred. See `gtkPageSetupToFile`.

### Usage

    gtkPageSetupNewFromFile(file.name, .errwarn = TRUE)

### Arguments

``file.name`` | the filename to read the page setup from
`.errwarn` | Whether to issue a warning on error or fail silently

### Details

Since 2.12

### Value

A list containing the following elements:

`retval` | [`GtkPageSetup`] the restored `GtkPageSetup`
``error`` | return location for an error, or `NULL`. [ allow-none ]

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.36.3 Index]