<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Overprintmode and shadings"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=80998">80998</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Overprintmode and shadings
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Thomas.Freitag@alfa.de
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>splash backend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=102365" name="attach_102365" title="PDF which shows the problem">attachment 102365</a> <a href="attachment.cgi?id=102365&action=edit" title="PDF which shows the problem">[details]</a></span>
PDF which shows the problem

If using overprintmode (OPM) together with overprint switched on, the CMYK
values have to examined for each channel. If the channel value is != 0, it
knocks out the background channel, otherwise the background channel remains
unchained.
The actual implementation will not work with shadings: here we have dynamic
patterns and the comparison have to be done with the result of
pattern->getColor(), but it does it only once with the actual fill color which
is completely wrong because the fill color has nothing to do with the shading
colors.
The attached PDF shows the effect: the yellow N is painted greenish if the
jpegcmyk or overprint option is used (only available if compiled with
SPLASH_CMYK)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>