Bug 304957 - Printing page breaks chop through content
Summary: Printing page breaks chop through content
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdewebkit (show other bugs)
Version: 4.7.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: webkit-devel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-11 01:26 UTC by Volker Kuhlmann
Modified: 2012-08-21 21:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
printout of dot.kde.org (206.20 KB, application/pdf)
2012-08-11 15:22 UTC, Dawit Alemayehu
Details

Note You need to log in before you can comment on or make changes to this bug.
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.