static GList *
pdf_document_images_get_image_mapping (EvDocumentImages *document_images,
- gint page)
+ EvPage *page)
{
GList *retval = NULL;
PdfDocument *pdf_document;
GList *list;
pdf_document = PDF_DOCUMENT (document_images);
- poppler_page = poppler_document_get_page (pdf_document->document, page);
+ poppler_page = POPPLER_PAGE (page->backend_page);
mapping_list = poppler_page_get_image_mapping (poppler_page);
for (list = mapping_list; list; list = list->next) {
ev_image_mapping = g_new (EvMapping, 1);
- ev_image_mapping->data = ev_image_new (page, image_mapping->image_id);
+ ev_image_mapping->data = ev_image_new (page->index, image_mapping->image_id);
ev_image_mapping->area.x1 = image_mapping->area.x1;
ev_image_mapping->area.y1 = image_mapping->area.y1;
ev_image_mapping->area.x2 = image_mapping->area.x2;
}
poppler_page_free_image_mapping (mapping_list);
- g_object_unref (poppler_page);
return g_list_reverse (retval);
}
/* Methods */
GList *(* get_image_mapping) (EvDocumentImages *document_images,
- gint page);
+ EvPage *page);
GdkPixbuf *(* get_image) (EvDocumentImages *document_images,
EvImage *image);
};
GType ev_document_images_get_type (void) G_GNUC_CONST;
GList *ev_document_images_get_image_mapping (EvDocumentImages *document_images,
- gint page);
+ EvPage *page);
GdkPixbuf *ev_document_images_get_image (EvDocumentImages *document_images,
EvImage *image);
if ((job_pd->flags & EV_PAGE_DATA_INCLUDE_IMAGES) && EV_IS_DOCUMENT_IMAGES (job->document))
job_pd->image_mapping =
ev_document_images_get_image_mapping (EV_DOCUMENT_IMAGES (job->document),
- job_pd->page);
+ ev_page);
if ((job_pd->flags & EV_PAGE_DATA_INCLUDE_ANNOTS) && EV_IS_DOCUMENT_ANNOTATIONS (job->document))
job_pd->annot_mapping =
ev_document_annotations_get_annotations (EV_DOCUMENT_ANNOTATIONS (job->document),