Re: [PyQt] QtWebKit to PDF rendering

2009-09-25 Thread David Boddie
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

Re: [PyQt] QtWebKit to PDF rendering

2009-09-23 Thread Giovanni Bajo
On 9/23/2009 7:47 AM, Dominic Jacobssen wrote: Hi all. I'm a newbie to Qt (but not to Python), and I wanted to ask for next step guidance. I want to generate PDF reports by pointing a HTML-to-PDF renderer at a server that spits out well-formed XHTML with inline SVG. I know that that's a can of

Re: [PyQt] QtWebKit to PDF rendering

2009-09-23 Thread Dominic Jacobssen
On Wed, Sep 23, 2009 at 1:21 PM, Giovanni Bajo ra...@develer.com wrote: There's already a complete solution available for this: http://code.google.com/p/wkhtmltopdf/ You may want to have a look at the code. Hi Giovanni; thanks for your reply. Unfortunately, I've already seen wkhtmltopdf. As

[PyQt] QtWebKit to PDF rendering

2009-09-23 Thread Sundance
Dominic Jacobssen wrote: Anyway, I've attached my efforts, and I'd greatly appreciate any guidance or prodding in the right direction. Hi Dominic, hi all, Attached herein is a version that works by sizing the PDF page correctly. (Also the URL and destination file are command line arguments,

[PyQt] QtWebKit to PDF rendering

2009-09-22 Thread Dominic Jacobssen
Hi all. I'm a newbie to Qt (but not to Python), and I wanted to ask for next step guidance. I want to generate PDF reports by pointing a HTML-to-PDF renderer at a server that spits out well-formed XHTML with inline SVG. I know that that's a can of worms right there, but I've managed to get a