Open Bug 284925 Opened 19 years ago Updated 2 years ago

print properties should depend on printer capabilities (for CUPS printers)

Categories

(Core :: Printing: Output, defect)

x86
All
defect

Tracking

()

People

(Reporter: wolfiR, Unassigned)

References

(Blocks 2 open bugs)

Details

the print properties (page size, color/grayscale/margins) should be read from
cups-server if cups printer is chosen.
The PPD definition can give information which settings to the above properties a
printer can handle. This should be read via the PPD API.
See also bug 347518 and bug 415171. I'll mark them as dependent on this one, since fixing this one will probably fix those.
Blocks: 347518
Blocks: 415171
Blocks: 130075
From bug 130075 comment #50:

----
Boris Zbarsky (reviews very slow until May)  2007-10-04 08:33:20 PST 
Joseph, printing is basically unowned and has been for years.  The only way
things get fixed in it is if someone steps up and fixes them.
----

So it seems there's litte hope of someone from the opensource community stepping in to take care of this.

The only hope seems to be in the Mozilla Foundation which could sponsor some paid developer time. Any ideas?
I think the best option for Mozilla Foundation would be to employ Roland Mainz (if he's still interested in Mozilla development):

http://www.nrubsig.org/people/gisburn/

He was one of the most valuable and active Mozilla printing subsystem and XPrint developers until around may 2005, when he apparently migrated to different activities.

The involved projects seem to have stagnated since then.
From bug 130075 comment #51:

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/29622/comments/8

Till Kamppeter writes:

This is a problem of the browsers, as they can find out about the unprintable
margins of the printer by means of the CUPS API. The CUPS API gives access to
the complete content of the PPD file and the PPD contains the margin info. So
this bug has to be assigned to both the printing part of the Gecko engine and
the printing part of Konqueror.

The bug is not in CUPS, CUPS has everything to tell the apps how big the
unprintable margins of each configured printer are.
One can get the PPD file for a printer  by using the cupsGetPPD() function from CUPS API:
http://www.cups.org/documentation.php/api-cups.html#cupsGetPPD

And the needed info can be extracted from this PPD using proper PPD-related functions:
http://www.cups.org/documentation.php/api-ppd.html#ppdPageSize

There are lots of working examples of the usage of those functions in open source software:
http://www.google.com/codesearch?q=ppdPageSize+cupsGetPPD
Assignee: printing → nobody
QA Contact: printing
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.