> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Christopher White
> Sent: Monday, March 28, 2011 12:22 PM
> To: Yen Ivan
> Cc: [email protected]
> 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 <[email protected]> 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/
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to