Document.factoryGetDocumentForGfile

Synchronously creates a #EvDocument for the document at @file; or, if no backend handling the document's type is found, or an error occurred on opening the document, returns %NULL and fills in @error. If the document is encrypted, it is returned but also @error is set to %EV_DOCUMENT_ERROR_ENCRYPTED.

class Document
static
factoryGetDocumentForGfile

Parameters

file FileIF

a #GFile

flags EvDocumentLoadFlags

flags from #EvDocumentLoadFlags

cancellable Cancellable

a #GCancellable, or %NULL

Return Value

Type: Document

a new #EvDocument, or %NULL

Throws

GException on failure.

Meta