Document.from_file


Description:

[ CCode ( has_construct_function = false ) ]
public Document.from_file (string uri, string? password) throws Error

Creates a new Document.

If null is returned, then error will be set. Possible errors include those in the Error and FileError domains.

Parameters:

uri

uri of the file to load

password

password to unlock the file with, or null

Returns:

A newly created Document, or null