PrintSettings.from_file


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.12" ) ]
public PrintSettings.from_file (string file_name) throws Error

Reads the print settings from file_name.

Returns a new PrintSettings object with the restored settings, or null if an error occurred. If the file could not be loaded then error is set to either a FileError or KeyFileError. See to_file.

Parameters:

file_name

the filename to read the settings from

Returns:

the restored PrintSettings