Raster file generation

Nathan Whitehorn nathanw at uchicago.edu
Fri Feb 9 07:25:47 PST 2007


> Nathan Whitehorn wrote:
> > I've written a poppler-based pdftoraster filter
> > (http://banshee.uchicago.edu/~nathanw/pdftoraster.cc), which produces
> > cups raster documents in any color space with any color ordering that
> > display beautifully in raster view
> > (http://banshee.uchicago.edu/~nathanw/testpage.ras.bz2). When I feed
> > them to rastertohp, however, I get only a very zoomed-in few of the
> > top left corner of the page in black and white. I'm at a loss to
> > explain what's going on.
>
> You're generating 32-bit KCMY data, but the rastertohp filter only
> handles 4-bit KCMY data.

Is there any way to determine the desired bit depth? I'm also not sure if there's a recommended way to convert to 4-bit KCMY (should I just round myself, or is there a utility function for doing this kind of thing?).

> BTW, kudos on developing this - with a little work, it would be
> very useful as a standard CUPS filter (especially once we start
> using poppler for the pdftops filter, too...)

Thanks!
-Nathan





More information about the cups-devel mailing list