Class
AtrilDocumentDocument
since: 1.5.0
Functions
ev_document_factory_get_document
Creates a EvDocument for the document at uri; 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.
since: 1.5.0
Instance methods
ev_document_synctex_backward_search
Peforms a Synctex backward search to obtain the TeX input file, line and
(possibly) column corresponding to the position (x,y) (in 72dpi
coordinates) in the page of document.
since: 1.5.0
ev_document_synctex_forward_search
Peforms a Synctex forward search to obtain the area in the document
corresponding to the position line and column number in the source Tex file.
since: 1.5.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
unstable since: 2.0
Class structure
struct AtrilDocumentDocumentClass {
GObjectClass base_class;
gboolean (* load) (
EvDocument* document,
const char* uri,
GError** error
);
gboolean (* save) (
EvDocument* document,
const char* uri,
GError** error
);
gint (* get_n_pages) (
EvDocument* document
);
EvPage* (* get_page) (
EvDocument* document,
gint index
);
void (* get_page_size) (
EvDocument* document,
EvPage* page,
double* width,
double* height
);
gchar* (* get_page_label) (
EvDocument* document,
EvPage* page
);
cairo_surface_t* (* render) (
EvDocument* document,
EvRenderContext* rc
);
EvDocumentInfo* (* get_info) (
EvDocument* document
);
gboolean (* get_backend_info) (
EvDocument* document,
EvDocumentBackendInfo* info
);
gboolean (* support_synctex) (
EvDocument* document
);
GBytes* (* get_resource) (
EvDocument* document,
const gchar* path
);
gchar* (* get_resource_mime) (
EvDocument* document,
const gchar* path
);
gpointer (* get_doc_handle) (
EvDocument* document
);
}
Class members
base_class: GObjectClass- No description available.
load: gboolean (* load) ( EvDocument* document, const char* uri, GError** error )- No description available.
save: gboolean (* save) ( EvDocument* document, const char* uri, GError** error )- No description available.
get_n_pages: gint (* get_n_pages) ( EvDocument* document )- No description available.
get_page: EvPage* (* get_page) ( EvDocument* document, gint index )- No description available.
get_page_size: void (* get_page_size) ( EvDocument* document, EvPage* page, double* width, double* height )- No description available.
get_page_label: gchar* (* get_page_label) ( EvDocument* document, EvPage* page )- No description available.
render: cairo_surface_t* (* render) ( EvDocument* document, EvRenderContext* rc )- No description available.
get_info: EvDocumentInfo* (* get_info) ( EvDocument* document )- No description available.
get_backend_info: gboolean (* get_backend_info) ( EvDocument* document, EvDocumentBackendInfo* info )- No description available.
support_synctex: gboolean (* support_synctex) ( EvDocument* document )- No description available.
get_resource: GBytes* (* get_resource) ( EvDocument* document, const gchar* path )- No description available.
get_resource_mime: gchar* (* get_resource_mime) ( EvDocument* document, const gchar* path )- No description available.
get_doc_handle: gpointer (* get_doc_handle) ( EvDocument* document )- No description available.