[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Printer configuring
From:       Michael Goffioul <goffioul () imec ! be>
Date:       2001-07-31 16:27:19
[Download RAW message or body]

> Just a thought: would it work if you cheated the margins problem by
> specifying a bigger paper size so the effective area will be the way it
> should be? Or can't you select any arbitrary paper size without side effects?

No. The paper size is written in the PS file, so you will confuse the PS
interpreter afterwards and part of your page will be clipped. That's what actually
happened previously: by using small margins, the viewport was larger, but somewhere
in Qt code, the page size is recomputed from the viewport size and the margins,
in this last case the Qt harcoded ones, so you ended up with a larger page size
and part of the content was clipped when printed. That's why I Came back on
Qt margins only.

> Another option might be artificially adding a bunch of whitespace at the page
> edges and draw the contents inside that smaller 'viewport'. Again, not sure
> at all if the API allows such tricks.

This is application-side trick. Remember that what's inside the page is not
controlled  by kdeprint. The only way to change margins is in the appplication:
- use KPrinter::setFullPage(true)
- use other values for the margin, but the application must be aware then that
  (0,0) is the top-left corner of the page: it cannot draw at that position

Well...let me think a few hours about that last possibility to see if it could
be embedded (and hidden to the application) into KPrinter.

Bye.
Michael.


-- 
------------------------------------------------------------------
Michael Goffioul		IMEC-DESICS-MIRA
e-mail: goffioul@imec.be	(Mixed-Signal and RF Applications)
Tel:    +32/16/28-8510		Kapeldreef, 75
Fax:    +32/16/28-1515		3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic