Comment 8 for bug 264727

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

The mentioned CUPS DDK bug can be easily fixed by applying the attached patch to CUPS DDK. Then the above-mentioned lines indeed produce the desired lines in the PPD file:

*MaxMediaWidth: "612.00"
*MaxMediaHeight: "3168.00"
*HWMargins: 0.00 0.00 0.00 0.00
*CustomPageSize True: "pop pop pop pop pop
%% FoomaticRIPOptionSetting: PageSize=Custom"
*End
*ParamCustomPageSize Width: 1 points 72.00 612.00
*ParamCustomPageSize Height: 2 points 288.00 3168.00
*ParamCustomPageSize WidthOffset: 3 points 0 0
*ParamCustomPageSize HeightOffset: 4 points 0 0
*ParamCustomPageSize Orientation: 5 int 0 0

(To define non-zero default margins a line like "HWMargins 18 36 18 36" needs to be added to the .drv file)

To fix this in Ubuntu we could apply the patch to CUPS DDK and apply also a patch to HPLIP to define custom page size support as I described, but we must assure that this fix will also get applied upstream, so that HPLIP will work with all distributions.