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

List:       pykde
Subject:    Re: [PyQt] QtWebKit to PDF rendering
From:       David Boddie <david () boddie ! org ! uk>
Date:       2009-09-25 20:48:22
Message-ID: 200909252248.23473.david () boddie ! org ! uk
[Download RAW message or body]

On Wed Sep 23 19:21:31 BST 2009, Sundance wrote:

> ... Also, might be a stupid question, but what happens if you use
> QWebFrame.print() instead of .render()?

This should produce something more acceptable for printing, though what you
get depends on the style sheet.

I couldn't say if there are clipping issues with this approach, but one
problem that can occur is that titles may become separated from the
paragraphs that immediately follow them. There may be a way to write the
style sheet or HTML to prevent this - it would require a bit of
experimentation to find out.

David
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

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