On 18/04/16 04:41, Till Kamppeter wrote:
> Perhaps we need to remove the script to return to upstream reality with
> the original awkwardness (perhaps this could be the SRU for Xenial) and
> for a more sophisticated solution pre-build all PPDs, edit them with a
> script to rename the paper sizes, and then either compress the PPDs with
> pyppd for shipping or look whther CUPS has a tool to reverse-compile
> PPDs to a .drv file, to generate the new .drv file this way.
>
> WDYT?
>

Hi Till,

My gut response is remove the script.

However this may bring into play problems with jobs sticking in the 
queue for no apparent reason that I mentioned in the original bug post. 
This definitely occurs when printing from applications using gtk+ and is 
caused by cups not picking up that GS has terminated with an error, in 
this case "rangecheck in SetPageDevice. This error is only reported in 
the error_log if debug logging is enabled. I think it would be a good 
idea to fix this anyway!

I have been looking at a solution using cupsUIConstraint and 
cupsUIResolver  to forbid the use of non duplex page sizes when duplex 
printing is selected and a .duplex page size is available. I have not 
got it to work yet.
The idea is to insert lines like these after each .Duplex CustomMedia found.

             Attribute cupsUIContraints A4Pagesize "*Duplex *PageSize A4"
             Attribute cupsUIResolver A4PageSize "*Duplex *PageSize 
A4.Duplex"
             Attribute cupsUIContraints A4PageRegion "*Duplex 
*PageRegion A4"
             Attribute cupsUIResolver A4PageRegion "*Duplex *PageRegion 
A4.Duplex"
             Attribute cupsUIContraints A4ImageableArea "*Duplex 
*ImageableArea A4"
             Attribute cupsUIResolver A4ImageableArea "*Duplex 
*ImageableArea A4.Duplex"
             Attribute cupsUIContraints A4PaperDimension "*Duplex 
*PaperDimension A4"
             Attribute cupsUIResolver A4PaperDimension "*Duplex 
*PaperDimension A4.Duplex"


Comments?

Roger

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568996

Title:
  Duplex printing does not work properly for HP printers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to