EV_DOCUMENT_INFO_MOD_DATE |
EV_DOCUMENT_INFO_LINEARIZED |
EV_DOCUMENT_INFO_N_PAGES |
- EV_DOCUMENT_INFO_SECURITY;
-
+ EV_DOCUMENT_INFO_SECURITY |
+ EV_DOCUMENT_INFO_PAPER_SIZE;
g_object_get (PDF_DOCUMENT (document)->document,
"title", &(info->title),
"linearized", &(info->linearized),
NULL);
+ pdf_document_get_page_size(document, 0,
+ &(info->paper_width),
+ &(info->paper_height));
+
+ // Convert to mm.
+ info->paper_width = info->paper_width / 72.0f * 25.4f;
+ info->paper_height = info->paper_height / 72.0f * 25.4f;
+
switch (layout) {
case POPPLER_PAGE_LAYOUT_SINGLE_PAGE:
info->layout = EV_DOCUMENT_LAYOUT_SINGLE_PAGE;
width, height);
gdk_pixbuf_fill (pixbuf, 0xffffffff);
+ ev_document_fc_mutex_lock ();
poppler_page_render_to_pixbuf (poppler_page, 0, 0,
width, height,
scale, rotation, pixbuf);
+ ev_document_fc_mutex_unlock ();
g_object_unref (poppler_page);
search_string);
}
-int
+static int
pdf_document_find_get_n_results (EvDocumentFind *document_find, int page)
{
PdfDocumentSearch *search = PDF_DOCUMENT (document_find)->search;
}
}
-gboolean
+static gboolean
pdf_document_find_get_result (EvDocumentFind *document_find,
int page,
int n_result,
return TRUE;
}
-int
+static int
pdf_document_find_page_has_results (EvDocumentFind *document_find,
int page)
{
return search && search->pages[page] != NULL;
}
-double
+static double
pdf_document_find_get_progress (EvDocumentFind *document_find)
{
PdfDocumentSearch *search;
iface->end = pdf_document_file_exporter_end;
}
-void
+static void
pdf_selection_render_selection (EvSelection *selection,
EvRenderContext *rc,
GdkPixbuf **pixbuf,
}
-GdkRegion *
+static GdkRegion *
pdf_selection_get_selection_region (EvSelection *selection,
EvRenderContext *rc,
EvRectangle *points)
return retval;
}
-GdkRegion *
+static GdkRegion *
pdf_selection_get_selection_map (EvSelection *selection,
EvRenderContext *rc)
{