KDE Print porting - help needed
John Layt
johnlayt at yahoo.com.au
Sat Oct 13 15:49:51 BST 2007
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.
John.
--
Send instant messages to your online friends http://au.messenger.yahoo.com
More information about the kde-core-devel
mailing list