Comment 16 for bug 1045486

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Thank you for your patience and being with us in providing the log files.

I checked syslog and error_log files and the only doubt that is striking me from where this value is getting PageSize=Custom.Custom.595.28x841.89

To my knowledge in PPD file we add different hardware margins for same PaperSize type. One normal, other is borderless and other AutoDuplex.
For example:

In hpcups.drv file we add these

1. Normal : CustomMedia "A4/A4 210x297mm" 595.44 841.68 9 9 9 9 "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
         "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
2. Borderless: CustomMedia "A4.FB/A4 Borderless 210x297mm" 610.992 855.792 0 0 0 0 "<</cupsInteger0 26/PageSize[610.992 855.792]/ImagingBBox null>>setpagedevice"
         "<</cupsInteger0 26/cupsReal0 .098/cupsReal1 .098/PageSize[610.992 855.792]/ImagingBBox null>>setpagedevice"
3. Auto duplex: CustomMedia "A4.Duplex/A4 AutoDuplex 210x297mm" 595.44 832.68 9 33.192 9 42.192 "<</cupsInteger0 26/PageSize[595.44 832.68]/ImagingBBox null>>setpagedevice"
         "<</cupsInteger0 26/PageSize[595.44 832.68]/ImagingBBox null>>setpagedevice"

Normal PaperSize is used for the normal 1-sided priting
Borderless is used for the non-border printing on 1-side
Autoduplex is used for printing on 2-sided.

Basically above all paper size differ in there hardware margins.

The use case for Duplex print job is
Go to cups url : localhost:631

select printers and click on the print queue and in Administration drop down select "Set default options".
In that select the duplexer as installed and in the General tab select the Paper Size as "A4 AutoDuplex 210x297mm" and click in the "Set Defaults Options" button in the below.

Now Open up the document in a application and perform the same in the print settings and give the print. This should now be able to print the duplex in your printer.

in syslog and error_log you should be able to see PageSize=A4.Duplex

Thanks,
Goutam