Bug 304957

Summary: Printing page breaks chop through content
Product: [Unmaintained] kdelibs Reporter: Volker Kuhlmann <bugz57>
Component: kdewebkitAssignee: webkit-devel
Status: RESOLVED WORKSFORME    
Severity: normal CC: adawit
Priority: NOR    
Version: 4.7.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: printout of dot.kde.org

Description Volker Kuhlmann 2012-08-11 01:26:08 UTC
When printing a web page that is more than one page long, page breaks are put exactly at the end of the paper regardless of content, frequently chopping through a line of text horizontally with the bottom half of the text line on the next page. With images it's common to have the image badly chopped too.

Reproducible: Always

Steps to Reproduce:
1. Load a web page with text and images.
2. Print to PDF or PS.
3.
Actual Results:  
Page breaks occur stubbornly at the end of the paper regardles of content, producing illegible results.

Expected Results:  
Intelligent page breaks, i.e. before a line of text, or before an image.

This is with webkit, but I don't see webkit component.
khtml is better for printing, but unfortunately no longer usable for the majority of web pages.
Please re-assign to webkit if that is different.

Unfortunately firefox can't produce useable printouts either, leaving out chunks of content altogether, so there's currently no practical way to reliably create a PDF from a web page.
Comment 1 Dawit Alemayehu 2012-08-11 15:21:16 UTC
Cannot reproduce with QtWebKit from Qt 4.8. See the attached PDF printout of kdenews.org. Please note that the version of QtWebKit included with the Qt 4.7 is rather very old with many issues unresolved at the time it was released.
Comment 2 Dawit Alemayehu 2012-08-11 15:22:17 UTC
Created attachment 73099 [details]
printout of dot.kde.org
Comment 3 Dawit Alemayehu 2012-08-21 21:27:59 UTC
See previous comments.