Bug 245972 - Printing html file bigger than page to pdf strips content
Summary: Printing html file bigger than page to pdf strips content
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml printing (show other bugs)
Version: 4.4.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 241773 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-28 03:03 UTC by Alvaro Soliverez
Modified: 2011-03-27 17:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test HTML file (59.47 KB, text/html)
2010-07-28 03:03 UTC, Alvaro Soliverez
Details
resulting PDF file (56.42 KB, application/pdf)
2010-07-28 03:04 UTC, Alvaro Soliverez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alvaro Soliverez 2010-07-28 03:03:05 UTC
Created attachment 49559 [details]
test HTML file

Version:           4.4.0 (using KDE 4.4.5) 
OS:                Linux

The bug was originally reported to us in KMyMoney -> BUG:241773
We have a KHTMLView where we display reports to the user. To print, we call KHTMLView->print()
If the HTML is bigger than the page, it only prints one page or some other weird issues, particularly if it is wider.
I'm adding a sample HTML file and the resulting PDF file, with only 1 page printed.

Reproducible: Always

Steps to Reproduce:
Open the html file
Print to PDF


Actual Results:  
The PDF content is only partial compared to the actual HTML file

Expected Results:  
print the whole HTML file
Comment 1 Alvaro Soliverez 2010-07-28 03:04:08 UTC
Created attachment 49560 [details]
resulting PDF file
Comment 2 Alvaro Soliverez 2010-07-28 11:50:20 UTC
The attached PDF is the result of opening the HTML in Konqueror and printing to PDF file.
Comment 3 Alvaro Soliverez 2010-07-28 11:51:49 UTC
*** Bug 241773 has been marked as a duplicate of this bug. ***
Comment 4 Maksim Orlovich 2010-07-29 16:25:36 UTC
What sort of output would you expect here?  The normal khtml behavior when printing in general is to scale down, which it doesn't do here for some reason --- but that tends to fail in some cases. Do you expect any tables you produce to be much wider than the one here?
Comment 5 Alvaro Soliverez 2010-07-29 16:30:15 UTC
Yes, they could be twice as double as this one or more.
Either scale down or print multiple pages with the rest of the contents. 

Having the option to choose between the two possibilities would be a plus. ;)
Comment 6 Allan Sandfeld 2011-03-27 17:58:28 UTC
Should be fixed now in 4.6 and master branch. 

The problem was a regression in how scaling was applied, so we accepted too big pages but didn't apply the scaling necessary to fit it page. I do not know when the regression was created.