          globalParams = new GlobalParams();
          setErrorCallback(detail::error_function, NULL);
      }
-@@ -662,3 +664,72 @@ document* document::load_from_raw_data(const char *file_data,
+@@ -662,3 +664,78 @@ document* document::load_from_raw_data(const char *file_data,
                                  owner_password, user_password);
      return document_private::check_document(doc, 0);
  }

diff --git a/configure b/configure
index 81bf644..302c5e3 100755
--- a/configure
+++ b/configure
@@ -17712,7 +17712,7 @@ if test "x$GXX" = "xyes"; then

 @BUILD_LIBTIFF_TRUE@libtiff_includes = $(LIBTIFF_CFLAGS)
 @BUILD_LIBOPENJPEG_TRUE@libjpeg2000_includes = $(LIBOPENJPEG_CFLAGS)
diff --git a/cpp/poppler-document.cpp b/cpp/poppler-document.cpp
index 1c24b47..732c252 100644
--- a/cpp/poppler-document.cpp
+++ b/cpp/poppler-document.cpp
@@ -30,6 +30,7 @@
