Future of KPrinter

Maksim Orlovich mo85 at cornell.edu
Sat Sep 8 22:21:59 BST 2007


> On Saturday 08 Sep 2007, Matt Rogers wrote:
>> On Sep 8, 2007, at 2:29 PM, Alex Merry wrote:
>> > Are custom margins really needed?
>>
>> What do you mean by custom margins? I think they would be needed for
>> printing things like photos where the margins are very tiny or
>> nonexistant.
>
> Well, KPrinter (and Qt3's QPrinter) provides methods which allow you to
> get and set the left, right, top and bottom margins.
>
> QPrinter provides paperRect() and pageRect(), the latter being the
> printable area.  There is no way to set the margins yourself, but you
> can use setFullPage() to change the origin from the top left of
> pageRect() to the top left of paperRect().

Well, that should at least be enough to print PDFs and such..

>
> The reason setting the margins doesn't really make sense is that
> printers have an area that they can print on (which may be the full
> page for some printers), and no amount of software settings is going to
> change that.

Of course, one of the reason to have the manual setting is if the setting
the printer system believes is correct really isn't.








More information about the kde-core-devel mailing list