[webkit-qt] Using "screen" stylesheet in QWebFrame::print()
Chris Yuen
kizzx2 at gmail.com
Mon Jun 7 06:15:11 PDT 2010
Thanks Kenneth!
Does WebCore supports printing to PDF (or some other print format)? I
can't seem to find the API/doc on it.
Best regards,
Chris Yuen
On Mon, Jun 7, 2010 at 8:26 PM, Kenneth Christiansen
<kenneth.christiansen at openbossa.org> wrote:
> Currently WebCore does that, it also forces a layout at the width of the page.
>
> If we are going to change this we will have to come up with some good API.
>
> Kenneth
>
> On Sun, Jun 6, 2010 at 10:41 PM, Chris Yuen <kizzx2 at gmail.com> wrote:
>> Hello,
>>
>> I am using QWebFrame::print() to produce a PDF document. However, it
>> seems to automatically choose to use the "print" stylesheets and
>> discards any "screen" stylesheets during the process. Is there a way
>> to nicely ask it to use the screen stylesheets as in
>> QWebFrame::render()?
>>
>> Of course, I could always scrape the HTML to replace all print
>> stylesheets to screen stylesheets. I am just looking for a cleaner way
>> to do it.
>>
>> Thanks!
>>
>> Chris Yuen
>> _______________________________________________
>> webkit-qt mailing list
>> webkit-qt at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>>
>
>
>
> --
> Kenneth Rohde Christiansen
> Technical Lead / Senior Software Engineer
> Qt Labs Americas, Nokia Technology Institute, INdT
> Phone +55 81 8895 6002 / E-mail kenneth.christiansen at openbossa.org
>
More information about the webkit-qt
mailing list