From kde-core-devel Sat Sep 08 21:21:59 2007 From: "Maksim Orlovich" Date: Sat, 08 Sep 2007 21:21:59 +0000 To: kde-core-devel Subject: Re: Future of KPrinter Message-Id: <12665.69.202.82.213.1189286519.squirrel () webmail ! cornell ! edu> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=118928655302553 > 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.