From kde-core-devel Sat Sep 08 22:40:34 2007 From: "Maksim Orlovich" Date: Sat, 08 Sep 2007 22:40:34 +0000 To: kde-core-devel Subject: Re: Future of KPrinter Message-Id: <13387.69.202.82.213.1189291234.squirrel () webmail ! cornell ! edu> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=118929126428066 > On Saturday 08 September 2007 22:32:16 Alex Merry wrote: >> I'm not sure what applications are currently setting the margins for - >> possibly just to change the co-ordinate system.  However, you can do >> this using QPainter::translate(). > > The applications that benefit from setting margins are the ones that don't > know the concept of pages in their document. So in the printer dialog we > select a page size and that page size is then used as a content size to > print in. > From the application point of view the content size is the page size minus > the margins. > From the application POV the user entering the margins, or reading them > from cups makes no difference at all. Nope. If I am printing a pdf, I don't want any margins added (since the document has them). If am printing a text file, I want to honor the printer margins. > > Do note that an application like KWord will ignore any margin settings in > the printer dialog, since it has them specified in the document already. But can that be done reliably for all applications?