1 https://bugzilla.gnome.org/show_bug.cgi?id=638312
2 Patch is borrowed from Ubuntu
4 --- evince-2.32.0.orig/configure.ac
5 +++ evince-2.32.0/configure.ac
6 @@ -505,6 +505,7 @@ if test "x$enable_pdf" = "xyes"; then
7 AC_CHECK_FUNCS(poppler_page_get_text_layout)
8 AC_CHECK_FUNCS(poppler_page_get_selected_text)
9 AC_CHECK_FUNCS(poppler_page_add_annot)
10 + AC_CHECK_FUNCS(poppler_document_is_linearized)
11 LIBS=$evince_save_LIBS
12 PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)
13 if test x$enable_cairo_pdf = xyes; then
14 --- evince-2.32.0.orig/backend/pdf/ev-poppler.cc
15 +++ evince-2.32.0/backend/pdf/ev-poppler.cc
16 @@ -640,7 +640,9 @@ pdf_document_get_info (EvDocument *docum
17 PopplerPermissions permissions;
21 +#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
24 info = g_new0 (EvDocumentInfo, 1);
26 info->fields_mask = EV_DOCUMENT_INFO_TITLE |
27 @@ -676,7 +678,11 @@ pdf_document_get_info (EvDocument *docum
28 "producer", &(info->producer),
29 "creation-date", &(info->creation_date),
30 "mod-date", &(info->modified_date),
31 +#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
32 + "linearized", &linearized,
34 "linearized", &(info->linearized),
36 "metadata", &metadata,
39 @@ -782,6 +788,11 @@ pdf_document_get_info (EvDocument *docum
40 info->security = g_strdup (_("No"));
43 +#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
44 + info->linearized = linearized ? g_strdup (_("Yes")) : g_strdup (_("No"));