Raster data for Pure black text printing

shermin sherminismail at gmail.com
Mon Jan 5 03:59:49 PST 2009


Hi,
For getting the type of the object rendered(object_tag) I used gsutil.h file from GS and while checking the type I am GS_DEVICE_DOESNT_SUPPORT_TAGS.Inorder to support graphical tags do we need do any other things in pstoraster source code.

I am supposed to do that if I get the GS_Text tag and Line tag I can make that to pure black while others to CMY channel.I used the gs_imager_state(Device state) to get the object tag.

Plz help

Shermin


> 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