[Poppler-bugs] [Bug 97193] New: [patch] Add support for custom colors to pdftops 0.46.0 -level1sep

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 2 19:21:38 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97193

            Bug ID: 97193
           Summary: [patch] Add support for custom colors to pdftops
                    0.46.0 -level1sep
           Product: poppler
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: utils
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: williambader at hotmail.com

Created attachment 125490
  --> https://bugs.freedesktop.org/attachment.cgi?id=125490&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160802/660e24be/attachment.html>


More information about the Poppler-bugs mailing list