Commit f77e6cf4 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos
Browse files

[pdf] Update to poppler api changes

Linearized PopplerDocument property is now boolean rather than string.
parent f6acfef1
......@@ -722,6 +722,9 @@ pdf_document_get_info (EvDocument *document)
PopplerPermissions permissions;
EvPage *page;
char *metadata;
#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
gboolean linearized;
#endif
info = g_new0 (EvDocumentInfo, 1);
......@@ -758,7 +761,11 @@ pdf_document_get_info (EvDocument *document)
"producer", &(info->producer),
"creation-date", &(info->creation_date),
"mod-date", &(info->modified_date),
#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
"linearized", &linearized,
#else
"linearized", &(info->linearized),
#endif
"metadata", &metadata,
NULL);
......@@ -864,6 +871,10 @@ pdf_document_get_info (EvDocument *document)
info->security = g_strdup (_("No"));
}
#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
info->linearized = linearized ? g_strdup (_("Yes")) : g_strdup (_("No"));
#endif
return info;
}
......
......@@ -512,6 +512,7 @@ if test "x$enable_pdf" = "xyes"; then
AC_CHECK_FUNCS(poppler_page_get_text_layout)
AC_CHECK_FUNCS(poppler_page_get_selected_text)
AC_CHECK_FUNCS(poppler_page_add_annot)
AC_CHECK_FUNCS(poppler_document_is_linearized)
LIBS=$evince_save_LIBS
PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)
if test x$enable_cairo_pdf = xyes; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment