Re: [Splix-devel] Important modifications in the SpliX code..
Brought to you by:
ap2c
From: Chuck H. <cfh...@er...> - 2006-12-15 01:59:31
|
Hi Aurelien, Thanks for the explanation. That allowed me to find part of the problem. I must have synced my SVN files shortly before you made the change, because all of the postscript issue strings for Duplex were set to "". Unfortunately, now that they are set to your values, it still doesn't work in the Duplex mode. There are only a couple of differences evident from the two ppd files, one is: OrderDependency: 10.0 AnySetup *Duplex vs. OrderDependency: 50 AnySetup *Duplex What do the 10.0, and 50 do? Another is simply the addition of a couple of spaces: "<</Duplex true/Tumble false>>setpagedevice" vs. *Duplex DuplexNoTumble/Long Edge: " <</Duplex true /Tumble false>> setpagedevice" *End Which is, I believe syntacticly identical. And the little snippet of code that propagates the Duplex and Tumble for all pages... -Chuck Aurélien Croc wrote: > Le jeudi 14 décembre 2006 21:15, Chuck Harris a écrit : >> The ppd file is reflecting the changes made using the CUPS configure >> printer section, but I don't understand how the ppd file works. There are >> big differences between your ppd file's duplex section, and the proprietary >> ppd file's duplex section. Since I have no knowledge of how ppd files >> work, I don't know if the differences are important. > > *OpenUI *Duplex/Double-Sided Printing: PickOne > *OrderDependency: 10.0 AnySetup *Duplex > *DefaultDuplex: None > *Duplex None/Off: "<</Duplex false>>setpagedevice" > *Duplex DuplexNoTumble/Long-Edge Binding: "<</Duplex true/Tumble > false>>setpagedevice" > *Duplex DuplexTumble/Short-Edge Binding: "<</Duplex true/Tumble > true>>setpagedevice" > *CloseUI: *Duplex > > OpenUI create a new option for the printer. This option is called Duplex and > shown as "Double-Sided Printing" for the user. It's an option list (pickone) > The *Duplex lines are each options. xxx/yyy means that xxx is the name of the > option and yyy is the message shown to the user. The last part of the line is > the code inserted into the postscript document. > > In other words, when you choose Long-Edge Binding, <</Duplex true/Tumble false >>> is added into the postscript document. This option may be caught by CUPS > to initialize the Raster header (sent to the filter). > Moreover, when the user choose an option, the print code send the choice to > CUPS. When the filter reads the PPD file, the option chosen by the user is > selected. > Unfortunatly the raster header bytes are not correctly set (i don't know > why..). So I get the chosen option in the PPD file. > > In the official PPD files, Samsung added PostScript code to "propagate" the > Duplex and Tumble for all pages. It could be useful for printing document > where several pages are not double-sided or something like that.. > > > > I don't have a such printer so i can't test. But i checked the SPL2 header > (where is coded the duplex and tumble information) and it is good (i just > check with KDE printer configuration, not lp). |