Bug 58381 - Incorrect Default Printer Margins
Summary: Incorrect Default Printer Margins
Status: CLOSED WORKSFORME
Alias: None
Product: kdeprint
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Goffioul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-12 14:08 UTC by Dik Takken
Modified: 2008-12-31 13:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dik Takken 2003-05-12 14:08:33 UTC
Version:            (using KDE KDE 3.1.1)
Installed from:    Compiled From Sources
OS:          Linux

The default printing margin is set to zero, such that applications can use the whole paper area while most printers cannot. The result is that some applications (KWrite, Kate, KEdit) print too close to the edge of the paper.

Since KDE should print correctly right out of the box, I would suggest to make the margins default to 10mm on all sides or something.
Comment 1 Michael Goffioul 2003-05-12 14:46:41 UTC
Subject: Re:  New: Incorrect Default Printer Margins

> The default printing margin is set to zero, such that applications can use the whole paper area while most printers cannot. The result is that some applications (KWrite, Kate, KEdit) print too close to the edge of the paper.
> 
> Since KDE should print correctly right out of the box, I would suggest to make the margins default to 10mm on all sides or something.


To be exactly correct, it's not KDEPrint that sets print margins to
zero, it's the printer installation that tells KDEPrint that the
printer can print with zero margins, which is of course not true.
So IMO, the original cause of the problem lies in printer configuration,
of to be precise, in the printer driver (PPD file).
KDEPrint extracts print margins from the driver. If it doesn't
find anything, it uses default values that are "large enough" for
most modern printers. Otherwise, it extracts values from the driver.
Checking that those values actually match printer capabilities it
a little bit out of scope of KDEPrint. Of course, you could impose
minimum values, but on one hand you need to use large enough values
to match most of printer capabilities, and on the other hand you'll
make many people unhappy because they cannot use the full "power"
of their own printer.

I don't think that I should restrict KDEPrint behavior because some
driver on some systems might tell KDEPrint stupid things. I'd prefer
to fix the driver.

Michael.

Comment 2 Dik Takken 2003-05-30 00:22:48 UTC
Ok, I will close this bug and look at the driver. 
Comment 3 David Faure 2005-01-19 16:35:00 UTC
I just fixed this in kdelibs/kdeprint HEAD
  M +27 -30    kpmarginpage.cpp   1.11
  M +18 -5     kprinter.cpp   1.82
Comment 4 John Layt 2008-12-31 13:04:12 UTC
Closing old Resolved status bug.