<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [patch] Add support for custom colors to pdftops 0.46.0 -level1sep"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97193">97193</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[patch] Add support for custom colors to pdftops 0.46.0 -level1sep
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>utils
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>williambader@hotmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=125490" name="attach_125490" title="patch to add -passlevel1customcolor">attachment 125490</a> <a href="attachment.cgi?id=125490&action=edit" title="patch to add -passlevel1customcolor">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=97193&attachment=125490'>[review]</a>
patch to add -passlevel1customcolor

I need to know both the process and spot colors in a PDF.
pdftops -level1sep converts spot colors to CMYK process color.
pdftops -level2sep preserves spot colors but always writes
"%%DocumentProcessColors: Cyan Magenta Yellow Black" if the PDF uses any color.

The attached patch adds a pdftops -passlevel1customcolor option that preserves
spot colors. This option affects the output only when using -level1sep.
Otherwise it is ignored. pdftops -level1sep continues to convert spot colors to
CMYK process color, while pdftops -level1sep -passlevel1customcolor preserves
spot colors.

The change is small and should not affect pdftops output unless the new option
is used.

The patches also change -level2sep and -level3sep so spot color does not
trigger setting the flags to write process color names to the
DocumentProcessColors comment. That comment should list only process colors
that are really used for process color. It is sufficient to list process colors
in the recipe to mix spot colors the CMYKCustomColor comment. For example, an
EPS with only spot red needs just
%%DocumentProcessColors: Black
%%DocumentCustomColors: (Red)
%%CMYKCustomColor:
%%+ 0 1 1 0 (Red)
The DocumentCustomColors comment should not list M or Y unless the EPS also has
process M or Y in addition to the spot Red.

Regards,
William</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>