How to cheat printer

keens312 keens312 at hotmail.com
Thu Jul 10 22:18:26 PDT 2008


Hi Michael,

Our printer needs to support the resolutions 400x600x2 dpi.

The requirement for the filter driver is that:
1. Still send down 600x600x2 raster data.
2. In Raster header, tell printer firmware the resolution is 400x600x2.

So, in PPD, we wrote like this:
*Choice "400x600x2/400x600x2" "<</HWResolution[600 600]/cupsBitsPerColor 8/cupsColorSpace 0/cupsCompression 2>>setpagedevice"

The difficult part is how to change the raster header.
Can I change HWResolution value in cups_page_header_t struct for this purpose?

Any better solution for this?

Thanks
Keene




More information about the cups-devel mailing list