diff options
author | infirit <[email protected]> | 2014-12-09 12:00:14 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-09 23:02:27 +0100 |
commit | 1a0f225a72ecc4b93b7681a9bf7e4aa7f06c04fc (patch) | |
tree | 2dd81172a7e52ce2cbe179a870f0401220b8c328 /backend/pdf/ev-poppler.cc | |
parent | 46b86ecb197547fee555b8a46aa97c61dc676cee (diff) | |
download | atril-1a0f225a72ecc4b93b7681a9bf7e4aa7f06c04fc.tar.bz2 atril-1a0f225a72ecc4b93b7681a9bf7e4aa7f06c04fc.tar.xz |
[pdf] Update to poppler api changes
Linearized PopplerDocument property is now boolean rather than string.
Based on evince commit: f77e6cf4fd7fef49ac91d8c62b6a9a993529adb8
From: Carlos Garcia Campos <[email protected]>
Diffstat (limited to 'backend/pdf/ev-poppler.cc')
-rw-r--r-- | backend/pdf/ev-poppler.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 74c6c48e..f1942687 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -634,6 +634,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); @@ -670,7 +673,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); @@ -776,6 +783,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; } |