Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
|
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS gboolean | _ev_document_factory_init (void) |
void | _ev_document_factory_shutdown (void) |
EvDocument * | ev_document_factory_get_document (const char *uri, GError **error) |
EvDocument * | ev_document_factory_get_document_full (const char *uri, EvDocumentLoadFlags flags, GError **error) |
EvDocument * | ev_document_factory_get_document_for_gfile (GFile *file, EvDocumentLoadFlags flags, GCancellable *cancellable, GError **error) |
EvDocument * | ev_document_factory_get_document_for_stream (GInputStream *stream, const char *mime_type, EvDocumentLoadFlags flags, GCancellable *cancellable, GError **error) |
void | ev_document_factory_add_filters (GtkWidget *chooser, EvDocument *document) |
G_BEGIN_DECLS gboolean _ev_document_factory_init | ( | void | ) |
void _ev_document_factory_shutdown | ( | void | ) |
void ev_document_factory_add_filters | ( | GtkWidget * | chooser, |
EvDocument * | document | ||
) |
ev_document_factory_add_filters: : a #GtkFileChooser : a EvDocument, or NULL
Adds some file filters to .
Always add a "All documents" format.
If is not NULL, adds a #GtkFileFilter for 's MIME type.
If is NULL, adds a #GtkFileFilter for each document type that evince can handle.
Definition at line 567 of file ev-document-factory.c.
EvDocument* ev_document_factory_get_document | ( | const char * | uri, |
GError ** | error | ||
) |
ev_document_factory_get_document: : an URI : a #GError location to store an error, or NULL
Creates a EvDocument for the document at ; or, if no backend handling the document's type is found, or an error occurred on opening the document, returns NULL and fills in . If the document is encrypted, it is returned but also is set to EV_DOCUMENT_ERROR_ENCRYPTED.
Returns: (transfer full): a new EvDocument, or NULL
Definition at line 397 of file ev-document-factory.c.
EvDocument* ev_document_factory_get_document_for_gfile | ( | GFile * | file, |
EvDocumentLoadFlags | flags, | ||
GCancellable * | cancellable, | ||
GError ** | error | ||
) |
EvDocument* ev_document_factory_get_document_for_stream | ( | GInputStream * | stream, |
const char * | mime_type, | ||
EvDocumentLoadFlags | flags, | ||
GCancellable * | cancellable, | ||
GError ** | error | ||
) |
ev_document_factory_get_document_for_stream: : a #GInputStream : (allow-none): a mime type hint : flags from EvDocumentLoadFlags : (allow-none): a #GCancellable, or NULL : (allow-none): a #GError location to store an error, or NULL
Synchronously creates a EvDocument for the document from ; or, if no backend handling the document's type is found, or an error occurred on opening the document, returns NULL and fills in . If the document is encrypted, it is returned but also is set to EV_DOCUMENT_ERROR_ENCRYPTED.
If is non-NULL, this overrides any type inferred from the stream. If the mime type cannot be inferred from the stream, and is NULL, an error is returned.
Returns: (transfer full): a new EvDocument, or NULL
Since: 3.6
Definition at line 490 of file ev-document-factory.c.
EvDocument* ev_document_factory_get_document_full | ( | const char * | uri, |
EvDocumentLoadFlags | flags, | ||
GError ** | error | ||
) |
ev_document_factory_get_document_full: : an URI : flags from EvDocumentLoadFlags : a #GError location to store an error, or NULL
Creates a EvDocument for the document at ; or, if no backend handling the document's type is found, or an error occurred on opening the document, returns NULL and fills in . If the document is encrypted, it is returned but also is set to EV_DOCUMENT_ERROR_ENCRYPTED.
Returns: (transfer full): a new EvDocument, or NULL
Definition at line 287 of file ev-document-factory.c.