|
static void | pdf_document_security_iface_init (EvDocumentSecurityInterface *iface) |
|
static void | pdf_document_document_links_iface_init (EvDocumentLinksInterface *iface) |
|
static void | pdf_document_document_images_iface_init (EvDocumentImagesInterface *iface) |
|
static void | pdf_document_document_forms_iface_init (EvDocumentFormsInterface *iface) |
|
static void | pdf_document_document_fonts_iface_init (EvDocumentFontsInterface *iface) |
|
static void | pdf_document_document_layers_iface_init (EvDocumentLayersInterface *iface) |
|
static void | pdf_document_document_print_iface_init (EvDocumentPrintInterface *iface) |
|
static void | pdf_document_document_annotations_iface_init (EvDocumentAnnotationsInterface *iface) |
|
static void | pdf_document_document_attachments_iface_init (EvDocumentAttachmentsInterface *iface) |
|
static void | pdf_document_document_media_iface_init (EvDocumentMediaInterface *iface) |
|
static void | pdf_document_find_iface_init (EvDocumentFindInterface *iface) |
|
static void | pdf_document_file_exporter_iface_init (EvFileExporterInterface *iface) |
|
static void | pdf_selection_iface_init (EvSelectionInterface *iface) |
|
static void | pdf_document_page_transition_iface_init (EvDocumentTransitionInterface *iface) |
|
static void | pdf_document_text_iface_init (EvDocumentTextInterface *iface) |
|
static int | pdf_document_get_n_pages (EvDocument *document) |
|
static EvLinkDest * | ev_link_dest_from_dest (PdfDocument *pdf_document, PopplerDest *dest) |
|
static EvLink * | ev_link_from_action (PdfDocument *pdf_document, PopplerAction *action) |
|
static void | pdf_print_context_free (PdfPrintContext *ctx) |
|
static gboolean | attachment_save_to_buffer (PopplerAttachment *attachment, gchar **buffer, gsize *buffer_size, GError **error) |
|
| EV_BACKEND_REGISTER_WITH_CODE (PdfDocument, pdf_document,{EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_SECURITY, pdf_document_security_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_LINKS, pdf_document_document_links_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_IMAGES, pdf_document_document_images_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_FORMS, pdf_document_document_forms_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_FONTS, pdf_document_document_fonts_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_LAYERS, pdf_document_document_layers_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_PRINT, pdf_document_document_print_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_ANNOTATIONS, pdf_document_document_annotations_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_ATTACHMENTS, pdf_document_document_attachments_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_MEDIA, pdf_document_document_media_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_FIND, pdf_document_find_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_FILE_EXPORTER, pdf_document_file_exporter_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_SELECTION, pdf_selection_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_TRANSITION, pdf_document_page_transition_iface_init);EV_BACKEND_IMPLEMENT_INTERFACE(EV_TYPE_DOCUMENT_TEXT, pdf_document_text_iface_init);}) |
|
static void | pdf_document_dispose (GObject *object) |
|
static void | pdf_document_init (PdfDocument *pdf_document) |
|
static void | convert_error (GError *poppler_error, GError **error) |
|
static gboolean | pdf_document_save (EvDocument *document, const char *uri, GError **error) |
|
static gboolean | pdf_document_load (EvDocument *document, const char *uri, GError **error) |
|
static gboolean | pdf_document_load_stream (EvDocument *document, GInputStream *stream, EvDocumentLoadFlags flags, GCancellable *cancellable, GError **error) |
|
static gboolean | pdf_document_load_gfile (EvDocument *document, GFile *file, EvDocumentLoadFlags flags, GCancellable *cancellable, GError **error) |
|
static EvPage * | pdf_document_get_page (EvDocument *document, gint index) |
|
static void | pdf_document_get_page_size (EvDocument *document, EvPage *page, double *width, double *height) |
|
static char * | pdf_document_get_page_label (EvDocument *document, EvPage *page) |
|
static cairo_surface_t * | pdf_page_render (PopplerPage *page, gint width, gint height, EvRenderContext *rc) |
|
static cairo_surface_t * | pdf_document_render (EvDocument *document, EvRenderContext *rc) |
|
static GdkPixbuf * | make_thumbnail_for_page (PopplerPage *poppler_page, EvRenderContext *rc, gint width, gint height) |
|
static GdkPixbuf * | pdf_document_get_thumbnail (EvDocument *document, EvRenderContext *rc) |
|
static cairo_surface_t * | pdf_document_get_thumbnail_surface (EvDocument *document, EvRenderContext *rc) |
|
static char * | pdf_document_get_format_from_metadata (xmlDocPtr doc, xmlXPathContextPtr xpathCtx) |
|
static EvDocumentLicense * | pdf_document_get_license_from_metadata (xmlDocPtr doc, xmlXPathContextPtr xpathCtx) |
|
static void | pdf_document_parse_metadata (const gchar *metadata, EvDocumentInfo *info) |
|
static EvDocumentInfo * | pdf_document_get_info (EvDocument *document) |
|
static gboolean | pdf_document_get_backend_info (EvDocument *document, EvDocumentBackendInfo *info) |
|
static gboolean | pdf_document_support_synctex (EvDocument *document) |
|
static void | pdf_document_class_init (PdfDocumentClass *klass) |
|
static gboolean | pdf_document_has_document_security (EvDocumentSecurity *document_security) |
|
static void | pdf_document_set_password (EvDocumentSecurity *document_security, const char *password) |
|
static gdouble | pdf_document_fonts_get_progress (EvDocumentFonts *document_fonts) |
|
static gboolean | pdf_document_fonts_scan (EvDocumentFonts *document_fonts, int n_pages) |
|
static const char * | font_type_to_string (PopplerFontType type) |
|
static gboolean | is_standard_font (const gchar *name, PopplerFontType type) |
|
static const gchar * | pdf_document_fonts_get_fonts_summary (EvDocumentFonts *document_fonts) |
|
static void | pdf_document_fonts_fill_model (EvDocumentFonts *document_fonts, GtkTreeModel *model) |
|
static gboolean | pdf_document_links_has_document_links (EvDocumentLinks *document_links) |
|
static void | build_tree (PdfDocument *pdf_document, GtkTreeModel *model, GtkTreeIter *parent, PopplerIndexIter *iter) |
|
static GtkTreeModel * | pdf_document_links_get_links_model (EvDocumentLinks *document_links) |
|
static EvMappingList * | pdf_document_links_get_links (EvDocumentLinks *document_links, EvPage *page) |
|
static EvLinkDest * | pdf_document_links_find_link_dest (EvDocumentLinks *document_links, const gchar *link_name) |
|
static gint | pdf_document_links_find_link_page (EvDocumentLinks *document_links, const gchar *link_name) |
|
static EvMappingList * | pdf_document_images_get_image_mapping (EvDocumentImages *document_images, EvPage *page) |
|
GdkPixbuf * | pdf_document_images_get_image (EvDocumentImages *document_images, EvImage *image) |
|
static GList * | pdf_document_find_find_text_with_options (EvDocumentFind *document_find, EvPage *page, const gchar *text, EvFindOptions options) |
|
static GList * | pdf_document_find_find_text (EvDocumentFind *document_find, EvPage *page, const gchar *text, gboolean case_sensitive) |
|
static EvFindOptions | pdf_document_find_get_supported_options (EvDocumentFind *document_find) |
|
static void | pdf_document_file_exporter_begin (EvFileExporter *exporter, EvFileExporterContext *fc) |
|
static void | pdf_document_file_exporter_begin_page (EvFileExporter *exporter) |
|
static void | pdf_document_file_exporter_do_page (EvFileExporter *exporter, EvRenderContext *rc) |
|
static void | pdf_document_file_exporter_end_page (EvFileExporter *exporter) |
|
static void | pdf_document_file_exporter_end (EvFileExporter *exporter) |
|
static EvFileExporterCapabilities | pdf_document_file_exporter_get_capabilities (EvFileExporter *exporter) |
|
static void | pdf_document_print_print_page (EvDocumentPrint *document, EvPage *page, cairo_t *cr) |
|
static void | pdf_selection_render_selection (EvSelection *selection, EvRenderContext *rc, cairo_surface_t **surface, EvRectangle *points, EvRectangle *old_points, EvSelectionStyle style, GdkColor *text, GdkColor *base) |
|
static gchar * | pdf_selection_get_selected_text (EvSelection *selection, EvPage *page, EvSelectionStyle style, EvRectangle *points) |
|
static cairo_region_t * | create_region_from_poppler_region (GList *region, gdouble xscale, gdouble yscale) |
|
static cairo_region_t * | pdf_selection_get_selection_region (EvSelection *selection, EvRenderContext *rc, EvSelectionStyle style, EvRectangle *points) |
|
static cairo_region_t * | pdf_document_text_get_text_mapping (EvDocumentText *document_text, EvPage *page) |
|
static gchar * | pdf_document_text_get_text (EvDocumentText *selection, EvPage *page) |
|
static gboolean | pdf_document_text_get_text_layout (EvDocumentText *selection, EvPage *page, EvRectangle **areas, guint *n_areas) |
|
static PangoAttrList * | pdf_document_text_get_text_attrs (EvDocumentText *document_text, EvPage *page) |
|
static gdouble | pdf_document_get_page_duration (EvDocumentTransition *trans, gint page) |
|
static EvTransitionEffect * | pdf_document_get_effect (EvDocumentTransition *trans, gint page) |
|
static EvFormField * | ev_form_field_from_poppler_field (PdfDocument *pdf_document, PopplerFormField *poppler_field) |
|
static EvMappingList * | pdf_document_forms_get_form_fields (EvDocumentForms *document, EvPage *page) |
|
static gboolean | pdf_document_forms_document_is_modified (EvDocumentForms *document) |
|
static gchar * | pdf_document_forms_form_field_text_get_text (EvDocumentForms *document, EvFormField *field) |
|
static void | pdf_document_forms_form_field_text_set_text (EvDocumentForms *document, EvFormField *field, const gchar *text) |
|
static void | pdf_document_forms_form_field_button_set_state (EvDocumentForms *document, EvFormField *field, gboolean state) |
|
static gboolean | pdf_document_forms_form_field_button_get_state (EvDocumentForms *document, EvFormField *field) |
|
static gchar * | pdf_document_forms_form_field_choice_get_item (EvDocumentForms *document, EvFormField *field, gint index) |
|
static int | pdf_document_forms_form_field_choice_get_n_items (EvDocumentForms *document, EvFormField *field) |
|
static gboolean | pdf_document_forms_form_field_choice_is_item_selected (EvDocumentForms *document, EvFormField *field, gint index) |
|
static void | pdf_document_forms_form_field_choice_select_item (EvDocumentForms *document, EvFormField *field, gint index) |
|
static void | pdf_document_forms_form_field_choice_toggle_item (EvDocumentForms *document, EvFormField *field, gint index) |
|
static void | pdf_document_forms_form_field_choice_unselect_all (EvDocumentForms *document, EvFormField *field) |
|
static void | pdf_document_forms_form_field_choice_set_text (EvDocumentForms *document, EvFormField *field, const gchar *text) |
|
static gchar * | pdf_document_forms_form_field_choice_get_text (EvDocumentForms *document, EvFormField *field) |
|
static void | poppler_annot_color_to_gdk_color (PopplerAnnot *poppler_annot, GdkColor *color) |
|
static EvAnnotationTextIcon | get_annot_text_icon (PopplerAnnotText *poppler_annot) |
|
static const gchar * | get_poppler_annot_text_icon (EvAnnotationTextIcon icon) |
|
static gboolean | poppler_annot_can_have_popup_window (PopplerAnnot *poppler_annot) |
|
static EvAnnotation * | ev_annot_from_poppler_annot (PopplerAnnot *poppler_annot, EvPage *page) |
|
static void | annot_set_unique_name (EvAnnotation *annot) |
|
static void | annot_area_changed_cb (EvAnnotation *annot, GParamSpec *spec, EvMapping *mapping) |
|
static EvMappingList * | pdf_document_annotations_get_annotations (EvDocumentAnnotations *document_annotations, EvPage *page) |
|
static gboolean | pdf_document_annotations_document_is_modified (EvDocumentAnnotations *document_annotations) |
|
static void | pdf_document_annotations_remove_annotation (EvDocumentAnnotations *document_annotations, EvAnnotation *annot) |
|
static GArray * | get_quads_for_area (PopplerPage *page, EvRectangle *area, PopplerRectangle *bbox) |
|
static void | pdf_document_annotations_add_annotation (EvDocumentAnnotations *document_annotations, EvAnnotation *annot, EvRectangle *rect_deprecated) |
|
static void | copy_poppler_annot (PopplerAnnot *src_annot, PopplerAnnot *dst_annot) |
|
static void | pdf_document_annotations_save_annotation (EvDocumentAnnotations *document_annotations, EvAnnotation *annot, EvAnnotationsSaveMask mask) |
|
static GFile * | get_media_file (const gchar *filename, EvDocument *document) |
|
static EvMedia * | ev_media_from_poppler_movie (EvDocument *document, EvPage *page, PopplerMovie *movie) |
|
static void | delete_temp_file (GFile *file) |
|
static gboolean | media_save_to_file_callback (const gchar *buffer, gsize count, gpointer data, GError **error) |
|
static EvMedia * | ev_media_from_poppler_rendition (EvDocument *document, EvPage *page, PopplerMedia *poppler_media) |
|
static EvMappingList * | pdf_document_media_get_media_mapping (EvDocumentMedia *document_media, EvPage *page) |
|
static gboolean | attachment_save_to_buffer_callback (const gchar *buf, gsize count, gpointer user_data, GError **error) |
|
static GList * | pdf_document_attachments_get_attachments (EvDocumentAttachments *document) |
|
static gboolean | pdf_document_attachments_has_attachments (EvDocumentAttachments *document) |
|
static gboolean | pdf_document_layers_has_layers (EvDocumentLayers *document) |
|
static void | build_layers_tree (PdfDocument *pdf_document, GtkTreeModel *model, GtkTreeIter *parent, PopplerLayersIter *iter) |
|
static GtkTreeModel * | pdf_document_layers_get_layers (EvDocumentLayers *document) |
|
static void | pdf_document_layers_show_layer (EvDocumentLayers *document, EvLayer *layer) |
|
static void | pdf_document_layers_hide_layer (EvDocumentLayers *document, EvLayer *layer) |
|
static gboolean | pdf_document_layers_layer_is_visible (EvDocumentLayers *document, EvLayer *layer) |
|