Bug 303278

Summary: Printing HTML to PDF shows overlapping table text on floated image
Product: [Applications] konqueror Reporter: Robby Stephenson <robby>
Component: khtml printingAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: aacid, bgodusky
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
URL: http://tellico-project.org/movie-report/movie-report.html
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: PDF produced by Konqueror from http://tellico-project.org/movie-report/movie-report.html
PDF produced by Firefox from http://tellico-project.org/movie-report/movie-report.html

Description Robby Stephenson 2012-07-10 04:56:03 UTC
When printing http://tellico-project.org/movie-report/movie-report.html, at some point, the text in the table ends up overlapping the images. The overlap is not shown when viewing the HTML in konqueror (khtml) or firefox. The problem is not there when printing to PDF with Firefox. So far, only when printing to PDF from Konqueror.

I'll attach the resulting PDF from printing from Konqueror. The first block on page 2, for the movie The Aviator, shows the text on top of the image.

The issue was initially seen when printing from Tellico and was reported as bug #291283. I tried to reduce the HTML file to make the test case shorter and simpler, but was not successful.

The webpage validates as HTML 4.01 Strict, so it doesn't appear to be an HTML issue.

Reproducible: Always

Steps to Reproduce:
1.File->Print
2.Select Print to PDF
3.Open resulting PDF and see the overlapping text and images.
Actual Results:  
Text overlaps the image at the top of page 2.

Expected Results:  
The text should not overlap the image. In the browser window, the text does not overlap.
Comment 1 Robby Stephenson 2012-07-10 05:01:08 UTC
Created attachment 72415 [details]
PDF produced by Konqueror from http://tellico-project.org/movie-report/movie-report.html
Comment 2 Robby Stephenson 2012-07-10 05:06:28 UTC
Created attachment 72416 [details]
PDF produced by Firefox from http://tellico-project.org/movie-report/movie-report.html

Note that none of the text overlaps the images, though Firefox prints smaller by default, it seems.
Comment 3 Robby Stephenson 2012-07-10 05:08:20 UTC
*** Bug 291283 has been marked as a duplicate of this bug. ***
Comment 4 Albert Astals Cid 2012-07-13 09:26:00 UTC
I'd say this is a khtml but, not a print-dialog but
Comment 5 Albert Astals Cid 2012-07-13 09:26:16 UTC
s/but/bug
Comment 6 Robby Stephenson 2012-07-13 15:15:59 UTC
(In reply to comment #4)
> I'd say this is a khtml but, not a print-dialog bug

True. What component is that, kdecore? general?
Comment 7 Albert Astals Cid 2012-07-13 17:15:00 UTC
Reassigned for you :-)
Comment 8 Christoph Cullmann 2024-05-06 20:57:32 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann