diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/CMakeLists.txt poppler-0.38.0/CMakeLists.txt
--- poppler-0.37.0/CMakeLists.txt	Fri Oct  9 18:22:28 2015
+++ poppler-0.38.0/CMakeLists.txt	Mon Nov 16 21:43:54 2015
@@ -478,7 +478,7 @@ add_library(poppler STATIC ${poppler_SRCS})
 else(MSVC)
 add_library(poppler SHARED ${poppler_SRCS})
 endif(MSVC)
-set_target_properties(poppler PROPERTIES VERSION 56.0.0 SOVERSION 56)
+set_target_properties(poppler PROPERTIES VERSION 57.0.0 SOVERSION 57)
 target_link_libraries(poppler ${poppler_LIBS})
 target_link_libraries(poppler LINK_INTERFACE_LIBRARIES "")
 install(TARGETS poppler RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX})
@@ -737,6 +737,22 @@ endif(LCMS2_FOUND)
 show_end_message_yesno("command line utils" ENABLE_UTILS)
 show_end_message("test data dir" ${TESTDATADIR})
 
+if(NOT ENABLE_SPLASH AND NOT CAIRO_FOUND)
+  message("Warning: There is no rendering backend enabled")
+endif(NOT ENABLE_SPLASH AND NOT CAIRO_FOUND)
+
 if(USE_FIXEDPOINT AND USE_FLOAT)
   message("Warning: Single precision and fixed point options should not be enabled at the same time")
 endif(USE_FIXEDPOINT AND USE_FLOAT)
+
+if(NOT ENABLE_LIBJPEG)
+  message("Warning: Using libjpeg is recommended. The internal DCT decoder is unmaintained.")
+endif(NOT ENABLE_LIBJPEG)
+
+if(ENABLE_ZLIB)
+  message("Warning: Using zlib is not totally safe")
+endif(ENABLE_ZLIB)
+
+if(NOT WITH_OPENJPEG)
+  message("Warning: Using libopenjpeg is recommended. The internal JPX decoder is unmaintained.")
+endif(NOT WITH_OPENJPEG)
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/ChangeLog poppler-0.38.0/ChangeLog
--- poppler-0.37.0/ChangeLog	Fri Oct  9 22:08:47 2015
+++ poppler-0.38.0/ChangeLog	Mon Nov 16 21:55:41 2015
@@ -1,3 +1,130 @@
+commit c63aa0c153fc114e6457fc89a40a9aa2a5508b9a
+Author: Albert Astals Cid <aacid@kde.org>
+Date:   Mon Nov 16 21:44:17 2015 +0100
+
+    Poppler 0.38
+
+ CMakeLists.txt      |  4 ++--
+ NEWS                | 12 ++++++++++++
+ configure.ac        |  2 +-
+ cpp/Doxyfile        |  2 +-
+ poppler/Makefile.am |  2 +-
+ qt4/src/Doxyfile    |  2 +-
+ qt5/src/Doxyfile    |  2 +-
+ 7 files changed, 19 insertions(+), 7 deletions(-)
+
+commit 6ca4afcea790d9118af3cda4961a647485fb14e8
+Author: Albert Astals Cid <aacid@kde.org>
+Date:   Mon Nov 16 21:40:20 2015 +0100
+
+    Update copyright years
+
+ utils/pdftocairo.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0e14049bc5b85f8ae2e1a56bc09480a499343e49
+Author: Adrian Johnson <ajohnson@redneon.com>
+Date:   Sat Oct 31 18:32:49 2015 +1030
+
+    pdftocairo: fix fit to page transformation
+
+    Testing with the test case in bug 87161 revealed some bugs.
+
+ utils/pdftocairo.cc | 42 ++++++++++++++++++++----------------------
+ 1 file changed, 20 insertions(+), 22 deletions(-)
+
+commit 3167964d70647d7b04e3ef8f415d5935990ecc9a
+Author: Thomas Freitag <Thomas.Freitag@alfa.de>
+Date:   Wed Oct 28 23:13:44 2015 +0100
+
+    Multiply opacity in case of pattern colorspace
+
+    Bug #92592
+
+ poppler/Gfx.cc             |  4 +++-
+ poppler/OutputDev.h        |  4 +++-
+ poppler/SplashOutputDev.cc |  8 ++++++++
+ poppler/SplashOutputDev.h  |  2 ++
+ splash/Splash.cc           | 16 ++++++++++++++--
+ splash/Splash.h            |  2 ++
+ splash/SplashState.cc      | 11 ++++++++++-
+ splash/SplashState.h       |  5 ++++-
+ 8 files changed, 46 insertions(+), 6 deletions(-)
+
+commit c20f68ce434366bbec4077824da97ce843ecdff3
+Author: Marek Kasik <mkasik@redhat.com>
+Date:   Thu Oct 22 16:15:23 2015 +0200
+
+    forms: Fix showing of some non-ASCII characters
+
+    The &uChar is an array with just 1 member not 2.
+    This fixes mapping of some Unicode characters to
+    character codes.
+
+ poppler/Annot.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 64735113b203bb5adaaadc65641ef6c971f82bc6
+Author: Marek Kasik <mkasik@redhat.com>
+Date:   Fri Oct 23 10:15:47 2015 +0200
+
+    forms: Find correct glyph or return 0
+
+    Function CharCodeToUnicode::mapToCharCode() could return
+    wrong character code for given unicode character because
+    of wrongly placed continue statement.
+
+ poppler/CharCodeToUnicode.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit fb906dca8b84d03267099cc3174c50e932a55236
+Author: Adrian Johnson <ajohnson@redneon.com>
+Date:   Thu Oct 15 07:19:16 2015 +1030
+
+    cmake: synchronize warnings with configure
+
+ CMakeLists.txt | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+
+commit 6329e3999d0a45b4c0cd0a8b675362e694bf1243
+Author: Adrian Johnson <ajohnson@redneon.com>
+Date:   Thu Oct 15 07:11:13 2015 +1030
+
+    configure: warn that the internal DCT/JPX decoders are unmaintained
+
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 67e1463dc65f85aec1f85b5bace9e810bf477e15
+Author: Albert Astals Cid <aacid@kde.org>
+Date:   Mon Oct 12 16:49:34 2015 +0200
+
+    Clarify getting a xpdf license does not allow you to use poppler in
+    closed source projects
+
+ README | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 44e1a2f715d0da8bb2941da296faab7ee144cfc2
+Author: Albert Astals Cid <aacid@kde.org>
+Date:   Fri Oct 9 23:28:03 2015 +0200
+
+    Poppler 0.37
+
+ CMakeLists.txt         |  4 ++--
+ NEWS                   | 13 +++++++++++++
+ configure.ac           |  2 +-
+ cpp/Doxyfile           |  2 +-
+ gtk-doc.make           | 20 ++++++++++++--------
+ poppler/Makefile.am    |  2 +-
+ qt4/src/CMakeLists.txt |  2 +-
+ qt4/src/Doxyfile       |  2 +-
+ qt4/src/Makefile.am    |  2 +-
+ qt5/src/CMakeLists.txt |  2 +-
+ qt5/src/Doxyfile       |  2 +-
+ qt5/src/Makefile.am    |  2 +-
+ 12 files changed, 36 insertions(+), 19 deletions(-)
+
 commit e8cb16bff48dbe2d9efd988ddb09608406d2633b
 Author: Adrian Johnson <ajohnson@redneon.com>
 Date:   Sun Sep 27 15:34:12 2015 +0930
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/Makefile.in poppler-0.38.0/Makefile.in
--- poppler-0.37.0/Makefile.in	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/Makefile.in	Mon Nov 16 21:45:23 2015
@@ -457,6 +457,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/NEWS poppler-0.38.0/NEWS
--- poppler-0.37.0/NEWS	Fri Oct  9 18:20:56 2015
+++ poppler-0.38.0/NEWS	Mon Nov 16 21:42:49 2015
@@ -1,3 +1,15 @@
+Release 0.38.0
+        core:
+         * Splash: Multiply opacity in case of pattern colorspace. Bug #92592
+         * Small form improvements on non ascii character rendering
+         * Clarify README
+
+        build system:
+         * Clarify internal DCT and JPX are only provided as deprecated fallbacks
+
+        utils:
+         * pdftocairo: fix fit to page transformation
+
 Release 0.37.0
         core:
          * CairoOutputDev: Use mask for even-odd fill. Bug #84527
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/README poppler-0.38.0/README
--- poppler-0.37.0/README	Sun Feb  9 16:10:30 2014
+++ poppler-0.38.0/README	Wed Oct 28 23:11:49 2015
@@ -29,7 +29,9 @@ Please note that xpdf, and thus poppler, is licensed u
 not the LGPL.  Consequently, any application using poppler must also
 be licensed under the GPL.  If you want to incorporate Xpdf based PDF
 rendering in a closed source product, please contact Glyph & Cog
-(www.glyphandcog.com) for commercial licensing options.
+(www.glyphandcog.com) for commercial licensing options. Note that
+this only allows you to use xpdf in a closed source product,
+not poppler itself.
 
 	Kristian Høgsberg, Feb. 27, 2005
 
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/configure poppler-0.38.0/configure
--- poppler-0.37.0/configure	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/configure	Mon Nov 16 21:45:23 2015
@@ -876,6 +876,7 @@ infodir
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -1028,6 +1029,7 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1280,6 +1282,15 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1417,7 +1428,7 @@ fi
 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 		datadir sysconfdir sharedstatedir localstatedir includedir \
 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-		libdir localedir mandir
+		libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1570,6 +1581,7 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -27865,7 +27877,7 @@ if test x$enable_single_precision = xyes -a x$enable_f
 fi
 
 if test x$enable_libjpeg != xyes; then
-	echo "  Warning: Using libjpeg is recommended"
+	echo "  Warning: Using libjpeg is recommended. The internal DCT decoder is unmaintained."
 fi
 
 if test x$enable_zlib != xno; then
@@ -27873,5 +27885,5 @@ if test x$enable_zlib != xno; then
 fi
 
 if test x$enable_libopenjpeg != xyes; then
-	echo "  Warning: Using libopenjpeg is recommended"
+	echo "  Warning: Using libopenjpeg is recommended. The internal JPX decoder is unmaintained."
 fi
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/configure.ac poppler-0.38.0/configure.ac
--- poppler-0.37.0/configure.ac	Fri Oct  9 18:21:07 2015
+++ poppler-0.38.0/configure.ac	Mon Nov 16 21:42:58 2015
@@ -1038,7 +1038,7 @@ if test x$enable_single_precision = xyes -a x$enable_f
 fi
 
 if test x$enable_libjpeg != xyes; then
-	echo "  Warning: Using libjpeg is recommended"
+	echo "  Warning: Using libjpeg is recommended. The internal DCT decoder is unmaintained."
 fi
 
 if test x$enable_zlib != xno; then
@@ -1046,5 +1046,5 @@ if test x$enable_zlib != xno; then
 fi
 
 if test x$enable_libopenjpeg != xyes; then
-	echo "  Warning: Using libopenjpeg is recommended"
+	echo "  Warning: Using libopenjpeg is recommended. The internal JPX decoder is unmaintained."
 fi
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/cpp/Makefile.in poppler-0.38.0/cpp/Makefile.in
--- poppler-0.37.0/cpp/Makefile.in	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/cpp/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -485,6 +485,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/cpp/tests/Makefile.in poppler-0.38.0/cpp/tests/Makefile.in
--- poppler-0.37.0/cpp/tests/Makefile.in	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/cpp/tests/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -385,6 +385,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/fofi/Makefile.in poppler-0.38.0/fofi/Makefile.in
--- poppler-0.37.0/fofi/Makefile.in	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/fofi/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -429,6 +429,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/glib/Makefile.in poppler-0.38.0/glib/Makefile.in
--- poppler-0.37.0/glib/Makefile.in	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/glib/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -498,6 +498,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/glib/demo/Makefile.in poppler-0.38.0/glib/demo/Makefile.in
--- poppler-0.37.0/glib/demo/Makefile.in	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/glib/demo/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -416,6 +416,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/glib/reference/Makefile.in poppler-0.38.0/glib/reference/Makefile.in
--- poppler-0.37.0/glib/reference/Makefile.in	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/glib/reference/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -333,6 +333,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
@@ -758,7 +759,7 @@ scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CF
 $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
 	@true
 
-sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files)
+sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent
 	$(GTK_DOC_V_XML)_source_dir='' ; \
 	for i in $(DOC_SOURCE_DIR) ; do \
 	    _source_dir="$${_source_dir} --source-dir=$$i" ; \
@@ -768,6 +769,17 @@ sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl
 
 sgml.stamp: sgml-build.stamp
 	@true
+
+xml/gtkdocentities.ent: Makefile
+	$(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \
+		echo "<!ENTITY package \"$(PACKAGE)\">"; \
+		echo "<!ENTITY package_bugreport \"$(PACKAGE_BUGREPORT)\">"; \
+		echo "<!ENTITY package_name \"$(PACKAGE_NAME)\">"; \
+		echo "<!ENTITY package_string \"$(PACKAGE_STRING)\">"; \
+		echo "<!ENTITY package_tarname \"$(PACKAGE_TARNAME)\">"; \
+		echo "<!ENTITY package_url \"$(PACKAGE_URL)\">"; \
+		echo "<!ENTITY package_version \"$(PACKAGE_VERSION)\">"; \
+	) > $@
 
 html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files)
 	$(GTK_DOC_V_HTML)rm -rf html && mkdir html && \
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/glib/reference/html/PopplerAttachment.html poppler-0.38.0/glib/reference/html/PopplerAttachment.html
--- poppler-0.37.0/glib/reference/html/PopplerAttachment.html	Fri Oct  9 22:08:49 2015
+++ poppler-0.38.0/glib/reference/html/PopplerAttachment.html	Mon Nov 16 21:55:44 2015
@@ -100,7 +100,7 @@
 <a name="PopplerAttachmentSaveFunc"></a><h3>PopplerAttachmentSaveFunc ()</h3>
 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 <span class="c_punctuation">(</span>*PopplerAttachmentSaveFunc<span class="c_punctuation">)</span> (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
-                              <em class="parameter"><code><span class="type">gsize</span> count</code></em>,
+                              <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
                               <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
                               <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 <p>Specifies the type of the function passed to
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/glib/reference/html/PopplerDocument.html poppler-0.38.0/glib/reference/html/PopplerDocument.html
--- poppler-0.37.0/glib/reference/html/PopplerDocument.html	Fri Oct  9 22:08:49 2015
+++ poppler-0.38.0/glib/reference/html/PopplerDocument.html	Mon Nov 16 21:55:44 2015
@@ -808,7 +808,7 @@ domains.</p>
 <a name="poppler-document-new-from-stream"></a><h3>poppler_document_new_from_stream ()</h3>
 <pre class="programlisting"><a class="link" href="PopplerDocument.html" title="PopplerDocument"><span class="returnvalue">PopplerDocument</span></a> *
 poppler_document_new_from_stream (<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
-                                  <em class="parameter"><code><span class="type">goffset</span> length</code></em>,
+                                  <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#goffset"><span class="type">goffset</span></a> length</code></em>,
                                   <em class="parameter"><code>const <span class="type">char</span> *password</code></em>,
                                   <em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                   <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/glib/reference/html/PopplerMedia.html poppler-0.38.0/glib/reference/html/PopplerMedia.html
--- poppler-0.37.0/glib/reference/html/PopplerMedia.html	Fri Oct  9 22:08:49 2015
+++ poppler-0.38.0/glib/reference/html/PopplerMedia.html	Mon Nov 16 21:55:44 2015
@@ -122,7 +122,7 @@
 <a name="PopplerMediaSaveFunc"></a><h3>PopplerMediaSaveFunc ()</h3>
 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 <span class="c_punctuation">(</span>*PopplerMediaSaveFunc<span class="c_punctuation">)</span> (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
-                         <em class="parameter"><code><span class="type">gsize</span> count</code></em>,
+                         <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
                          <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
                          <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 <p>Specifies the type of the function passed to
Binary files poppler-0.37.0/glib/reference/html/left-insensitive.png and poppler-0.38.0/glib/reference/html/left-insensitive.png differ
Binary files poppler-0.37.0/glib/reference/html/left.png and poppler-0.38.0/glib/reference/html/left.png differ
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/glib/reference/html/poppler-PopplerColor.html poppler-0.38.0/glib/reference/html/poppler-PopplerColor.html
--- poppler-0.37.0/glib/reference/html/poppler-PopplerColor.html	Fri Oct  9 22:08:49 2015
+++ poppler-0.38.0/glib/reference/html/poppler-PopplerColor.html	Mon Nov 16 21:55:44 2015
@@ -172,17 +172,17 @@ are values between 0 and 65535</p>
 </colgroup>
 <tbody>
 <tr>
-<td class="struct_member_name"><p><span class="type">guint16</span> <em class="structfield"><code><a name="PopplerColor.red"></a>red</code></em>;</p></td>
+<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="PopplerColor.red"></a>red</code></em>;</p></td>
 <td class="struct_member_description"><p>the red componment of color</p></td>
 <td class="struct_member_annotations"> </td>
 </tr>
 <tr>
-<td class="struct_member_name"><p><span class="type">guint16</span> <em class="structfield"><code><a name="PopplerColor.green"></a>green</code></em>;</p></td>
+<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="PopplerColor.green"></a>green</code></em>;</p></td>
 <td class="struct_member_description"><p>the green component of color</p></td>
 <td class="struct_member_annotations"> </td>
 </tr>
 <tr>
-<td class="struct_member_name"><p><span class="type">guint16</span> <em class="structfield"><code><a name="PopplerColor.blue"></a>blue</code></em>;</p></td>
+<td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="PopplerColor.blue"></a>blue</code></em>;</p></td>
 <td class="struct_member_description"><p>the blue component of color</p></td>
 <td class="struct_member_annotations"> </td>
 </tr>
Binary files poppler-0.37.0/glib/reference/html/right.png and poppler-0.38.0/glib/reference/html/right.png differ
Binary files poppler-0.37.0/glib/reference/html/up-insensitive.png and poppler-0.38.0/glib/reference/html/up-insensitive.png differ
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/goo/Makefile.in poppler-0.38.0/goo/Makefile.in
--- poppler-0.37.0/goo/Makefile.in	Fri Oct  9 18:25:46 2015
+++ poppler-0.38.0/goo/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -434,6 +434,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/gtk-doc.make poppler-0.38.0/gtk-doc.make
--- poppler-0.37.0/gtk-doc.make	Fri Oct  9 18:24:13 2015
+++ poppler-0.38.0/gtk-doc.make	Mon Nov 16 21:44:50 2015
@@ -142,7 +142,7 @@ GTK_DOC_V_XML=$(GTK_DOC_V_XML_$(V))
 GTK_DOC_V_XML_=$(GTK_DOC_V_XML_$(AM_DEFAULT_VERBOSITY))
 GTK_DOC_V_XML_0=@echo "  DOC   Building XML";
 
-sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files)
+sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent
 	$(GTK_DOC_V_XML)_source_dir='' ; \
 	for i in $(DOC_SOURCE_DIR) ; do \
 	    _source_dir="$${_source_dir} --source-dir=$$i" ; \
@@ -152,6 +152,17 @@ sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl
 
 sgml.stamp: sgml-build.stamp
 	@true
+
+xml/gtkdocentities.ent: Makefile
+	$(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \
+		echo "<!ENTITY package \"$(PACKAGE)\">"; \
+		echo "<!ENTITY package_bugreport \"$(PACKAGE_BUGREPORT)\">"; \
+		echo "<!ENTITY package_name \"$(PACKAGE_NAME)\">"; \
+		echo "<!ENTITY package_string \"$(PACKAGE_STRING)\">"; \
+		echo "<!ENTITY package_tarname \"$(PACKAGE_TARNAME)\">"; \
+		echo "<!ENTITY package_url \"$(PACKAGE_URL)\">"; \
+		echo "<!ENTITY package_version \"$(PACKAGE_VERSION)\">"; \
+	) > $@
 
 #### html ####
 
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/poppler/Annot.cc poppler-0.38.0/poppler/Annot.cc
--- poppler-0.37.0/poppler/Annot.cc	Fri Oct  9 18:13:49 2015
+++ poppler-0.38.0/poppler/Annot.cc	Wed Oct 28 23:11:49 2015
@@ -4125,7 +4125,7 @@ void Annot::layoutText(GooString *text, GooString *out
         // This assumes an identity CMap.
         outBuf->append((uChar >> 8) & 0xff);
         outBuf->append(uChar & 0xff);
-      } else if (ccToUnicode->mapToCharCode(&uChar, &c, 2)) {
+      } else if (ccToUnicode->mapToCharCode(&uChar, &c, 1)) {
         ccToUnicode->decRefCnt();
         if (font->isCIDFont()) {
           // TODO: This assumes an identity CMap.  It should be extended to
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/poppler/CharCodeToUnicode.cc poppler-0.38.0/poppler/CharCodeToUnicode.cc
--- poppler-0.37.0/poppler/CharCodeToUnicode.cc	Fri Sep 25 01:20:26 2015
+++ poppler-0.38.0/poppler/CharCodeToUnicode.cc	Wed Oct 28 23:11:49 2015
@@ -656,7 +657,7 @@ int CharCodeToUnicode::mapToCharCode(Unicode* u, CharC
       //compare the string char by char
       for (j=0; j<sMap[i].len; j++) {
         if (sMap[i].u[j] != u[j]) {
-          continue;
+          break;
         }
       }
 
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/poppler/Gfx.cc poppler-0.38.0/poppler/Gfx.cc
--- poppler-0.37.0/poppler/Gfx.cc	Mon Feb  9 22:30:14 2015
+++ poppler-0.38.0/poppler/Gfx.cc	Sun Nov 15 22:05:22 2015
@@ -2283,6 +2283,7 @@ void Gfx::doTilingPatternFill(GfxTilingPattern *tPat,
 		       xi0, yi0, xi1, yi1, xstep, ystep)) {
     goto restore;
   } else {
+    out->updatePatternOpacity(state);
     for (yi = yi0; yi < yi1; ++yi) {
       for (xi = xi0; xi < xi1; ++xi) {
         x = xi * xstep;
@@ -2293,6 +2294,7 @@ void Gfx::doTilingPatternFill(GfxTilingPattern *tPat,
         	  m1, tPat->getBBox());
       }
     }
+    out->clearPatternOpacity(state);
   }
 
   // restore graphics state
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/poppler/Makefile.am poppler-0.38.0/poppler/Makefile.am
--- poppler-0.37.0/poppler/Makefile.am	Fri Oct  9 18:22:37 2015
+++ poppler-0.38.0/poppler/Makefile.am	Mon Nov 16 21:44:06 2015
@@ -296,7 +296,7 @@ libpoppler_la_LIBADD =				\
 	$(win32_libs)
 
 libpoppler_la_LDFLAGS =				\
-	-version-info 56:0:0			\
+	-version-info 57:0:0			\
 	@create_shared_lib@			\
 	@auto_import_flags@
 
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/poppler/Makefile.in poppler-0.38.0/poppler/Makefile.in
--- poppler-0.37.0/poppler/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/poppler/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -539,6 +539,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
@@ -805,7 +806,7 @@ libpoppler_la_LIBADD = \
 	$(win32_libs)
 
 libpoppler_la_LDFLAGS = \
-	-version-info 56:0:0			\
+	-version-info 57:0:0			\
 	@create_shared_lib@			\
 	@auto_import_flags@
 
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/poppler/OutputDev.h poppler-0.38.0/poppler/OutputDev.h
--- poppler-0.37.0/poppler/OutputDev.h	Fri Jan  2 19:18:04 2015
+++ poppler-0.38.0/poppler/OutputDev.h	Wed Oct 28 23:13:28 2015
@@ -185,6 +185,8 @@ class OutputDev { (public)
   virtual void updateBlendMode(GfxState * /*state*/) {}
   virtual void updateFillOpacity(GfxState * /*state*/) {}
   virtual void updateStrokeOpacity(GfxState * /*state*/) {}
+  virtual void updatePatternOpacity(GfxState * /*state*/) {}
+  virtual void clearPatternOpacity(GfxState * /*state*/) {}
   virtual void updateFillOverprint(GfxState * /*state*/) {}
   virtual void updateStrokeOverprint(GfxState * /*state*/) {}
   virtual void updateOverprintMode(GfxState * /*state*/) {}
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/poppler/SplashOutputDev.cc poppler-0.38.0/poppler/SplashOutputDev.cc
--- poppler-0.37.0/poppler/SplashOutputDev.cc	Fri Oct  9 18:13:50 2015
+++ poppler-0.38.0/poppler/SplashOutputDev.cc	Sun Nov 15 22:05:22 2015
@@ -1842,6 +1842,14 @@ void SplashOutputDev::updateStrokeOpacity(GfxState *st
   }
 }
 
+void SplashOutputDev::updatePatternOpacity(GfxState *state) {
+  splash->setPatternAlpha((SplashCoord)state->getStrokeOpacity(), (SplashCoord)state->getFillOpacity());
+}
+
+void SplashOutputDev::clearPatternOpacity(GfxState *state) {
+  splash->clearPatternAlpha();
+}
+
 void SplashOutputDev::updateFillOverprint(GfxState *state) {
   splash->setFillOverprint(state->getFillOverprint());
 }
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/poppler/SplashOutputDev.h poppler-0.38.0/poppler/SplashOutputDev.h
--- poppler-0.37.0/poppler/SplashOutputDev.h	Sun May 24 18:41:19 2015
+++ poppler-0.38.0/poppler/SplashOutputDev.h	Wed Oct 28 23:12:47 2015
@@ -231,6 +231,8 @@ class SplashOutputDev: public OutputDev { (public)
   virtual void updateBlendMode(GfxState *state);
   virtual void updateFillOpacity(GfxState *state);
   virtual void updateStrokeOpacity(GfxState *state);
+  virtual void updatePatternOpacity(GfxState *state);
+  virtual void clearPatternOpacity(GfxState *state);
   virtual void updateFillOverprint(GfxState *state);
   virtual void updateStrokeOverprint(GfxState *state);
   virtual void updateOverprintMode(GfxState *state);
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/qt4/Makefile.in poppler-0.38.0/qt4/Makefile.in
--- poppler-0.37.0/qt4/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/qt4/Makefile.in	Mon Nov 16 21:45:24 2015
@@ -386,6 +386,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/qt4/demos/Makefile.in poppler-0.38.0/qt4/demos/Makefile.in
--- poppler-0.37.0/qt4/demos/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/qt4/demos/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -412,6 +412,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/qt4/src/Makefile.in poppler-0.38.0/qt4/src/Makefile.in
--- poppler-0.37.0/qt4/src/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/qt4/src/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -450,6 +450,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/qt4/tests/Makefile.in poppler-0.38.0/qt4/tests/Makefile.in
--- poppler-0.37.0/qt4/tests/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/qt4/tests/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -830,6 +830,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/qt5/Makefile.in poppler-0.38.0/qt5/Makefile.in
--- poppler-0.37.0/qt5/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/qt5/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -386,6 +386,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/qt5/demos/Makefile.in poppler-0.38.0/qt5/demos/Makefile.in
--- poppler-0.37.0/qt5/demos/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/qt5/demos/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -412,6 +412,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/qt5/src/Makefile.in poppler-0.38.0/qt5/src/Makefile.in
--- poppler-0.37.0/qt5/src/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/qt5/src/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -450,6 +450,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/qt5/tests/Makefile.in poppler-0.38.0/qt5/tests/Makefile.in
--- poppler-0.37.0/qt5/tests/Makefile.in	Fri Oct  9 18:25:47 2015
+++ poppler-0.38.0/qt5/tests/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -830,6 +830,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/splash/Makefile.in poppler-0.38.0/splash/Makefile.in
--- poppler-0.37.0/splash/Makefile.in	Fri Oct  9 18:25:48 2015
+++ poppler-0.38.0/splash/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -426,6 +426,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/splash/Splash.cc poppler-0.38.0/splash/Splash.cc
--- poppler-0.37.0/splash/Splash.cc	Fri Oct  9 15:50:25 2015
+++ poppler-0.38.0/splash/Splash.cc	Wed Oct 28 23:12:47 2015
@@ -1752,11 +1752,23 @@ void Splash::setBlendFunc(SplashBlendFunc func) {
 }
 
 void Splash::setStrokeAlpha(SplashCoord alpha) {
-  state->strokeAlpha = alpha;
+  state->strokeAlpha = (state->multiplyPatternAlpha) ? alpha *  state->patternStrokeAlpha : alpha;
 }
 
 void Splash::setFillAlpha(SplashCoord alpha) {
-  state->fillAlpha = alpha;
+  state->fillAlpha = (state->multiplyPatternAlpha) ? alpha *  state->patternFillAlpha : alpha;
+}
+
+void Splash::setPatternAlpha(SplashCoord strokeAlpha, SplashCoord fillAlpha) {
+  state->patternStrokeAlpha = strokeAlpha;
+  state->patternFillAlpha = fillAlpha;
+  state->multiplyPatternAlpha = gTrue;
+}
+
+void Splash::clearPatternAlpha() {
+  state->patternStrokeAlpha = 1;
+  state->patternFillAlpha = 1;
+  state->multiplyPatternAlpha = gFalse;
 }
 
 void Splash::setFillOverprint(GBool fop) {
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/splash/Splash.h poppler-0.38.0/splash/Splash.h
--- poppler-0.37.0/splash/Splash.h	Sun May 24 18:40:50 2015
+++ poppler-0.38.0/splash/Splash.h	Sun Nov 15 22:05:22 2015
@@ -129,6 +129,8 @@ class Splash { (public)
   void setBlendFunc(SplashBlendFunc func);
   void setStrokeAlpha(SplashCoord alpha);
   void setFillAlpha(SplashCoord alpha);
+  void setPatternAlpha(SplashCoord strokeAlpha, SplashCoord fillAlpha);
+  void clearPatternAlpha();
   void setFillOverprint(GBool fop);
   void setStrokeOverprint(GBool sop);
   void setOverprintMode(int opm);
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/splash/SplashState.cc poppler-0.38.0/splash/SplashState.cc
--- poppler-0.37.0/splash/SplashState.cc	Sun Feb  9 16:10:34 2014
+++ poppler-0.38.0/splash/SplashState.cc	Wed Oct 28 23:13:13 2015
@@ -59,6 +59,9 @@ SplashState::SplashState(int width, int height, GBool 
   blendFunc = NULL;
   strokeAlpha = 1;
   fillAlpha = 1;
+  multiplyPatternAlpha = gFalse;
+  patternStrokeAlpha = 1;
+  patternFillAlpha = 1;
   lineWidth = 0;
   lineCap = splashLineCapButt;
   lineJoin = splashLineJoinMiter;
@@ -109,6 +112,9 @@ SplashState::SplashState(int width, int height, GBool 
   blendFunc = NULL;
   strokeAlpha = 1;
   fillAlpha = 1;
+  multiplyPatternAlpha = gFalse;
+  patternStrokeAlpha = 1;
+  patternFillAlpha = 1;
   lineWidth = 0;
   lineCap = splashLineCapButt;
   lineJoin = splashLineJoinMiter;
@@ -152,6 +158,9 @@ SplashState::SplashState(SplashState *state) {
   blendFunc = state->blendFunc;
   strokeAlpha = state->strokeAlpha;
   fillAlpha = state->fillAlpha;
+  multiplyPatternAlpha = state->multiplyPatternAlpha;
+  patternStrokeAlpha = state->patternStrokeAlpha;
+  patternFillAlpha = state->patternFillAlpha;
   lineWidth = state->lineWidth;
   lineCap = state->lineCap;
   lineJoin = state->lineJoin;
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/splash/SplashState.h poppler-0.38.0/splash/SplashState.h
--- poppler-0.37.0/splash/SplashState.h	Mon Dec  1 20:52:31 2014
+++ poppler-0.38.0/splash/SplashState.h	Sun Nov 15 22:05:22 2015
@@ -101,6 +101,9 @@ class SplashState { (private)
   SplashBlendFunc blendFunc;
   SplashCoord strokeAlpha;
   SplashCoord fillAlpha;
+  GBool multiplyPatternAlpha;
+  SplashCoord patternStrokeAlpha;
+  SplashCoord patternFillAlpha;
   SplashCoord lineWidth;
   int lineCap;
   int lineJoin;
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/test/Makefile.in poppler-0.38.0/test/Makefile.in
--- poppler-0.37.0/test/Makefile.in	Fri Oct  9 18:25:48 2015
+++ poppler-0.38.0/test/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -403,6 +403,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/utils/Makefile.in poppler-0.38.0/utils/Makefile.in
--- poppler-0.37.0/utils/Makefile.in	Fri Oct  9 18:25:48 2015
+++ poppler-0.38.0/utils/Makefile.in	Mon Nov 16 21:45:25 2015
@@ -519,6 +519,7 @@ pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
diff -ruwp -I Copyright \(C\) -I POPPLER_[A-Z]*_VERSION -I PACKAGE_(VERSION|STRING) -I 0\.3[78]\.0 -I POPPLER_VERSION_ -I poppler_version_ poppler-0.37.0/utils/pdftocairo.cc poppler-0.38.0/utils/pdftocairo.cc
--- poppler-0.37.0/utils/pdftocairo.cc	Mon Nov  3 20:05:05 2014
+++ poppler-0.38.0/utils/pdftocairo.cc	Mon Nov 16 21:40:15 2015
@@ -447,9 +447,14 @@ static void getOutputSize(double page_w, double page_h
       *width = page_w;
       *height = page_h;
     } else {
+      if (page_w > page_h) {
+	*width = paperHeight;
+	*height = paperWidth;
+      } else {
 	*width = paperWidth;
 	*height = paperHeight;
       }
+    }
   } else {
     getCropSize(page_w * (x_resolution / 72.0),
 		page_h * (y_resolution / 72.0),
@@ -470,27 +475,20 @@ static void getFitToPageTransform(double page_w, doubl
   else
     scale = y_scale;
 
+  if (scale > 1.0 && !expand)
+    scale = 1.0;
+  if (scale < 1.0 && noShrink)
+    scale = 1.0;
+
   cairo_matrix_init_identity (m);
-  if (scale > 1.0) {
-    // page is smaller than paper
-    if (expand) {
-      // expand to fit
-      cairo_matrix_scale (m, scale, scale);
-    } else if (!noCenter) {
+  if (!noCenter) {
       // centre page
-      cairo_matrix_translate (m, (paper_w - page_w)/2, (paper_h - page_h)/2);
-    } else {
-      if (!svg) {
+    cairo_matrix_translate (m, (paper_w - page_w*scale)/2, (paper_h - page_h*scale)/2);
+  } else if (!svg) {
 	// move to PostScript origin
-	cairo_matrix_translate (m, 0, (paper_h - page_h));
+    cairo_matrix_translate (m, 0, (paper_h - page_h*scale));
       }
-    }
-  } else if (scale < 1.0)
-    // page is larger than paper
-    if (!noShrink) {
-      // shrink to fit
       cairo_matrix_scale (m, scale, scale);
-    }
 }
 
 static cairo_status_t writeStream(void *closure, const unsigned char *data, unsigned int length)
