[webkit-help] How to render html without gui
Nick Guenther
Nick.Guenther at dossierview.com
Mon Mar 28 11:05:09 PDT 2011
> From: webkit-help-bounces at lists.webkit.org [mailto:webkit-help-bounces at lists.webkit.org] On Behalf Of Christopher White
> Sent: Monday, March 28, 2011 12:22 PM
> To: Yen Ivan
> Cc: webkit-help at lists.webkit.org
> Subject: Re: [webkit-help] How to render html without gui
>
> Why not look into using an off screen buffer?
> On Mon, Mar 28, 2011 at 3:42 AM, Yen Ivan <ivan.subscribes at gmail.com> wrote:
> Hi, all,
>
>
> Recently I've tried wkhtmltopdf/image to render a html to am image file, and it worked fine on x11 platform but not for embedded Qt webkit.
> I'm wondering is there a way to render html to a memory buffer directly without using a "gui".
> I searched the web but can't find a right solution. Any help would be appreciated.
>
>
> Ivan
I spent a while beating my head against this problem too, and it looks like this is a platform-specific question. On Windows I eventually found the best option was to send WM_PRINTCLIENT (thus depending on having a GUI somewhere, though I can make the window hidden), whereas Qt has a whole Canvas architecture built in that Webkit-on-Qt can exploit, which makes life a lot easier there. I'm surprised wkhtmltopdf doesn't work for you. Have you tried any of these others?
* http://qt.gitorious.org/qt-labs/graphics-dojo/blobs/master/webcapture/webcapture.cpp
* http://cutycapt.sourceforge.net/
* http://code.google.com/p/webscreenie/
More information about the webkit-help
mailing list