KDE Print porting - help needed
Albert Astals Cid
aacid at kde.org
Sat Oct 13 16:00:42 BST 2007
A Dissabte 13 Octubre 2007, John Layt va escriure:
> On Saturday 13 October 2007, John Layt wrote:
> > The alternative would be for okular/ligature/kgv to adapt their screen
> > painting routines to work with printing, but I think it's a bit much for
> > us to expect them to take on such a workload for a change we instigated.
>
> Hmmm, in okular there's a class PagePainter with a method:
>
> static void paintPageOnPainter( QPainter * p, const Okular::Page * page,
> int pixID, int flags, int scaledWidth,
> int scaledHeight, const QRect & pageLimits
> );
>
> It shouldn't be hard it to iterate over the page list selected in the print
> dialog, call this method to paint the page, with the required newPage()
> call in-between? I realise this could be slower than calling the generator
> ps routine, and may result in lower quality output, but it would be
> portable across all platforms.
That method prints pixmaps, that's quite suboptimal when printing on paper
Albert
>
> John.
>
> --
>
> Send instant messages to your online friends http://au.messenger.yahoo.com
More information about the kde-core-devel
mailing list