[cups.general] Raster data for Pure black text printing

Michael R Sweet msweet at apple.com
Tue Dec 23 05:54:24 PST 2008


shermin wrote:
> Hi,
> One of the RIP used for CUPS is pstoraster right?So if i want to
> modify only the cmyk separation in my RIP,do i need to add only a
> patch of code for pstoraster as RIP for my device  and whether all
> the rest of things will be done by pstoraster???

Yes; if you look at the gdevcups.c code, it is responsible for
generating the CMYK separation - you could modify the color mapping
code to only use K for 100% black (RGB = 0,0,0), and there are other
hooks (that the current code does not use) for getting the type of
object being rendered.

Note, however, that if you replace the system Ghostscript with your
own you WILL break things.

> 2)How will i bring my RIP in between the pstoraster execution.?

You don't, you have to completely replace the pstoraster
functionality, either by replacing Ghostscript with your own version
or providing a separate copy that implements the color separation
behavior you want.

.....

FWIW, it is probably far easier to just take RGB and map grayscale
values to the K channel when adjacent pixels are also grayscale.  This
approach would also work on platforms where Ghostscript is not used...

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list