diff options
author | Thomas Freitag <thomas.freitag.bbr@gmail.com> | 2023-07-10 09:08:01 +0000 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2023-07-10 09:08:01 +0000 |
commit | 5726aff3cd2b5a2f84200d75ff8b875f8827c6c5 (patch) | |
tree | 3515774b373dc7a01a2727172bcc939520288b23 /poppler | |
parent | ee2af17e916e6310ab25b92a638df380b18a24ee (diff) |
GWG 19.2 - DeviceN Overprint (White):
Diffstat (limited to 'poppler')
-rw-r--r-- | poppler/GfxState.cc | 2 | ||||
-rw-r--r-- | poppler/SplashOutputDev.cc | 2 |
2 files changed, 2 insertions, 2 deletions
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; |