Comment 64 for bug 361772

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I propose this fix also as an SRU for Jaunty. debdiff attached and package uploaded to jaunty-proposed and waiting for approval.

To reproduce:

Currently the PPD file for the HP LaserJet 1200 contains broken FastRes and EconoMode options as shown in

https://bugs.edge.launchpad.net/ubuntu/+source/foomatic-db-engine/+bug/361772/comments/38

With the fix applied they will get generated correctly and they look like

*OpenUI *FastRes/Fast Res.: PickOne
*FoomaticRIPOption FastRes: enum JCL A
*OrderDependency: 100 AnySetup *FastRes
*DefaultFastRes: FromPrintoutMode
*FastRes FromPrintoutMode/Controlled by 'Printout Mode': "%% FoomaticRIPOptionSetting: FastRes=@PrintoutMode"
*FastRes Off/Off: "%% FoomaticRIPOptionSetting: FastRes=Off"
*FoomaticRIPOptionSetting FastRes=Off: "SET BITSPERPIXEL=1"
*FastRes On/On: "%% FoomaticRIPOptionSetting: FastRes=On"
*FoomaticRIPOptionSetting FastRes=On: "SET BITSPERPIXEL=2"
*CloseUI: *FastRes

*OpenUI *Economode/Toner Saving: PickOne
*FoomaticRIPOption Economode: enum JCL A
*OrderDependency: 100 AnySetup *Economode
*DefaultEconomode: FromPrintoutMode
*Economode FromPrintoutMode/Controlled by 'Printout Mode': "%% FoomaticRIPOptionSetting: Economode=@PrintoutMode"
*Economode Off/Off: "%% FoomaticRIPOptionSetting: Economode=Off"
*FoomaticRIPOptionSetting Economode=Off: "SET ECONOMODE=OFF"
*Economode On/On: "%% FoomaticRIPOptionSetting: Economode=On"
*FoomaticRIPOptionSetting Economode=On: "SET ECONOMODE=ON"
*CloseUI: *Economode

You can quickly generate said PPD with

foomatic-ppdfile -p HP-LaserJet_1200 -d pxlmono > lj1200.ppd

With the corrected PPD foomatic-rip will not convert PDF input into PostScript any more but feed PDF directly into Ghostscript. This makes the Ghostscript bug not being triggered any more and one is able to use the EconoMode and FastRes options.