[cups.development] PPD<->Raster Question

Michael Sweet msweet at apple.com
Fri Feb 25 19:52:17 PST 2011


On Feb 25, 2011, at 5:13 PM, Rick Bird wrote:
> I'm trying to work on a driver for Kodak 7250 printer for Linux..  Mostly working of the existing cupskodak souceforge project.. However they left alot out honestly for what the printer offers..  Currently trying to figure out the Photo printing side.
> 
> I setup the tray options in my ppd file to be Main & Photo(using InputSlot).. those show, thats great.  Probably after that is.. How do i tell what tray its accessing in the Raster API for when they're trying to print, so I can issue the right command to printer depending upon what tray is selected?

Have the InputSlot option code in the PPD set the MediaPosition value, e.g.:

    *InputSlot Tray1/Tray 1: "<</MediaPosition 1>>setpagedevice"

Then you can look at the MediaPosition member of the page header in your filter.

__________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list