Bug 125613 - No overall resizing - web page can't be printed on single page
Summary: No overall resizing - web page can't be printed on single page
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml printing (show other bugs)
Version: 3.4.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Allan Sandfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-15 00:58 UTC by Volker Kuhlmann
Modified: 2012-06-18 14:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
The result of printing it with konqueror 4 20080418 (45.56 KB, application/pdf)
2008-04-20 19:22 UTC, Jaime Torres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Kuhlmann 2006-04-15 00:58:27 UTC
Version:           3.4.2 (using KDE 3.4.2 Level "b" , SUSE 10.0)
Compiler:          Target: x86_64-suse-linux
OS:                Linux (x86_64) release 2.6.13-15.8-default

This page

http://www.timeanddate.com/calendar/print.html?year=2006&country=30&display=3&lang=en&moon=on&wno=1&hol=9

shows a calendar for 2006. Konqueror is unable to print this on a single sheet of paper. The +/- buttons on the browser window have no effect for printing, nor does the printing option (generic postscript) have anything to scale the output. This means konqueror fails to produce a usable printout of this web page. Especially annoying as it worked just fine with 

%%Creator: KDE 3.2.1 HTML Library
%%CreationDate: Mon Aug 16 00:47:04 2004
Comment 1 Kurt Pfeifle 2007-01-04 22:00:05 UTC
Works very well now for me; I'm even astonished that it scales onto 1 sheet if I use A5 or A6 paper size, instead of the default A4).

This is '3.5.5 (using KDE 3.5.5 "release 45.2" , openSUSE)', a SUSE 10.0 with updated KDE packages from the openSUSE build service.

Cheers, Kurt
Comment 2 Kurt Pfeifle 2007-01-04 22:06:30 UTC
I could verify this bug on a GoboLinux Live CD with KDE 3.5.3.
Comment 3 Kurt Pfeifle 2007-01-04 22:37:20 UTC
I could verify this bug on a Knoppix 5.1.0 Live CD with KDE 3.5.5 (I assume that this uses KDE packages from Debian Sid/Testing).


--------------
Removing the printout of the "header" on Knoppix makes it succeed to print on one A4 sheet. Leaving the printout of the "header" enabled (default), the printout uses another sheet, with the last line ("Calendar generated on www.timeanddate.com/calendar") from the source site going on the second page.

Removing the "header" from the GoboLinux/KDE 3.5.3 printout does not help there.
Comment 4 Kurt Pfeifle 2007-01-04 22:51:28 UTC
A factor that may need some consideration and investigation: the fonts used for the web page in question. Different fonts used may cause deviations of the expected page images for different systems because a replacement font may be used by Ghostscript for rendering if the original one is not available.

A few more observations....

Note 1: I've tested on all 3 distros with kprinter's "HTML Settings" like this:
        [ ] Printer friendly mode (black text, no background)
        [x] Print images
        [x] Print header

Note 2: Each of the tests used the default "margins", with "Custom margins"
        unchecked (in cm: top+bottom: 0.847, left+right: 1.270).

Note 3: GoboLinux Live CD uses Ghostscript 8.54 (which has no "cups" device
        included, and which therefore does not support the native job 
        processing path of CUPS via the "pstoraster" filter).

        SUSE 10.0 uses ESP Ghostscript 8.15.0

        Knoppix 5.1.0 uses ESP Ghostscript 8.15.3
Comment 5 Kurt Pfeifle 2007-01-05 00:50:19 UTC
On the weekend, I'll create 3 different "Print to file (PostScript)" attachments on the 3 distros mentioned above for further analysis. No time right now....
Comment 6 Reiner Nix 2007-01-12 17:29:01 UTC
For me printing is also a real pane as the size of the resulted print out is arbitrary.

I would be happy if I could explicitly specify a scale by percentage or for other printings if I could specify some kind of sizing by number of lines.
Comment 7 Kevin Funk 2008-04-20 15:55:17 UTC
Works fine for me on KDE 4.0.3 and 3.5.9. Please give feedback.
Comment 8 Todd 2008-04-20 18:48:48 UTC
Works for me on latest Opensuse KDE 4 unstable.
Comment 9 Jaime Torres 2008-04-20 19:22:49 UTC
Created attachment 24446 [details]
The result of printing it with konqueror 4 20080418

It was printed in linux, using kde4 compiled from sources from svn.
Comment 10 Volker Kuhlmann 2008-04-26 12:19:52 UTC
The page URL at the top now prints on 1 page, openSUSE 10.3. The fonts used are ArialMT, Arial-BoldMT (postscript output). Interesting, because I set all the konqueror fonts to the Nimbus varieties to get type1 font output.

Printing to PDF fails, because it crashes ghostscript (ESP Ghostscript 8.15.3). Seems to be a ghostscript problem, as converting the ps file with ps2pdf12 works, but ps2pdf13 and ps2pdf14 segfault.
Comment 11 Myriam Schweingruber 2012-06-18 14:06:12 UTC
Message from the Bugsquad and Konqueror teams:
This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore.
If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report.
Thank you for your understanding.