diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc index dac10d0..c655652 100644 --- a/poppler/PSOutputDev.cc +++ b/poppler/PSOutputDev.cc @@ -258,7 +258,7 @@ static const char *prolog[] = { "} def", "~3n", "/opm { dup /pdfOPM exch def", - " setoverprintmode } def", + " /setoverprintmode where{pop setoverprintmode}{pop}ifelse } def", "~23n", "/cs { /pdfFillXform exch def dup /pdfFillCS exch def", " setcolorspace } def", @@ -292,7 +292,7 @@ static const char *prolog[] = { "} def", "~3s", "/opm { dup /pdfOPM exch def", - " setoverprintmode } def", + " /setoverprintmode where{pop setoverprintmode}{pop}ifelse } def", "~23s", "/k { 4 copy 4 array astore /pdfFill exch def setcmykcolor", " /pdfLastFill true def /pdfLastStroke false def } def", @@ -390,7 +390,7 @@ static const char *prolog[] = { "~3sn", " /pdfOPM where {", " pop", - " pdfOPM setoverprintmode", + " pdfOPM /setoverprintmode where{pop setoverprintmode}{pop}ifelse ", " } if", "~23sn", "} def",