[poppler] poppler/GfxState.cc poppler/SplashOutputDev.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 10 09:08:03 UTC 2023


 poppler/GfxState.cc        |    2 +-
 poppler/SplashOutputDev.cc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5726aff3cd2b5a2f84200d75ff8b875f8827c6c5
Author: Thomas Freitag <thomas.freitag.bbr at gmail.com>
Date:   Mon Jul 10 09:08:01 2023 +0000

    GWG 19.2 - DeviceN Overprint (White):

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 97421919..a9da7be6 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -2856,7 +2856,7 @@ GfxDeviceNColorSpace::GfxDeviceNColorSpace(int nCompsA, std::vector<std::string>
             overprintMask |= 0x08;
         } else if (names[i] == "All") {
             overprintMask = 0xffffffff;
-        } else {
+        } else if (names[i] != "None") {
             overprintMask = 0x0f;
         }
     }
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 8c3fe5ac..2bff1310 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -1704,7 +1704,7 @@ void SplashOutputDev::setOverprintMask(GfxColorSpace *colorSpace, bool overprint
                 mask &= ~8;
             }
         }
-        if (grayIndexed) {
+        if (grayIndexed && colorSpace->getMode() != csDeviceN) {
             mask &= ~7;
         } else if (colorSpace->getMode() == csSeparation) {
             GfxSeparationColorSpace *deviceSep = (GfxSeparationColorSpace *)colorSpace;


More information about the poppler mailing list