PDA

View Full Version : QWebView and css page break property



haldrik
31st October 2012, 02:57
Hi, I'm trying to print a web page (a database report) on pdf, I'm using this approach for the css style

http://www.qtcentre.org/threads/26681-How-to-add-page-break-when-printe-a-webview-to-PDF-format

also I'm using <div style="page-break-before: always;"> </div>, both works on chromium, google-chrome and firefox
the breaks are inserted correctly, but not with QWebView(webkit).

I'm printing with this approach http://qt-project.org/forums/viewthread/17156

It seems to be a bug https://bugs.webkit.org/show_bug.cgi?id=48523

Thanks for your help. ;)