Bug 49533

Summary: printing webpages with konqueror: last line incomplete (>1 pages)
Product: [Applications] konqueror Reporter: Marc Schiffbauer <mschiff>
Component: khtml rendererAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: geert.jan.hut, marrandy
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marc Schiffbauer 2002-10-22 13:27:48 UTC
Version:           3.0.8 (3.1Beta2) (using KDE KDE 3.0.8)
Installed from:    Debian testing/unstable Packages
OS:          Linux

Maybe BUGS 24282 or 18779 are related. This seems to be and old Problem...
Konqueror is useless for printing Web-Dokuments longer than one page!

I am using CUPS and have a Laserjet 4 plus printer here. Please let me know if you need any further information (configs etc.)

If this Problem is not konqueror related: PLEASE(!) forward this BUG to the right place (kdeprinting?). I think this is a real showstopper if KDE is not able to print a webpage...

I also tried to configure the margins with the kde cups frontend, but this does also seems not to work.
Comment 1 Daniel Naber 2002-10-24 20:17:11 UTC
It would help if you described what the *problem* is. "Is useless" really isn't a 
helpful bug report. What are you doing, what happens and what do you expect to 
happen? 
 
Comment 2 Marc Schiffbauer 2002-10-25 10:26:39 UTC
Ohh my ;) I'm sorry... The Problem is that the last line on a page is missing or is only visible by a quarter or so.  I have KDE 3.1Beta2 unofficial Debian/sid packages installed. I use cups as printing system. The printer (HP LJ4+) has been properly configured and works fine with mozilla or from the console (lpr) for example.  Now I want to print a html page longer than one page with konqi. The problem seems to exist only with konqi.  I expect to see all the text on the paper that I wanted to print...  If you have suggestions what I could do else to help tracking down the problem, please let me know.  
Comment 3 Geert-Jan Hut 2002-11-28 10:01:32 UTC
I have had the same (kind of) problem. It is caused by a problem in Cups and/or the printers ppd file  definitions. The margins in the ImageableArea are wrong.   http://www.linuxprinting.org/pipermail/foomatic-devel/2002q2/000758.html   The solution is simple, although it takes a little amount of work. Find the ppd file you use, for  Cups it is in /etc/cups/ppd/ and change that file the line that starts with '*ImageableArea A4/A4:" to the correct dimensions of your printers printing area.     For my printer the default was: ' *ImageableArea A4/A4: "0 0 595 842" ' which I changed to '  *ImageableArea A4/A4: "0 9 595 842" ' . The first two values define the left-bottom corner in (x,y)  coordinates, which was raised a little bit by changing the second (y) value.   As the left-bottom value is the start of the coordinate system of your printer, you can use the same  y value for other output formats (A5,Letter,Legal) also.     You want to play with the exact Y value for your printer, and the best way to do this is to print 2  pages on a sheet. This way you will influence the leftmost margin, which is easily noticable. I  recommend using a longer text from www.extremetech.com. All pages of these texts have as the header a nice black square which starts at the edge.  (see: http://www.extremetech.com/article2/0,,37024,00.asp , the 'print' link -for a printable page- is at the bottom)  I heard rumours that KDE3.1 had a better way of inputting these area coordinates, but in the meantime this works (at least for me).    This solution should also work for bug 24282.   B.T.W I have a HP OfficeJet G95, and the margin problems were not visible in the preview of the  printed output. I tested it using KDE 3.0.5 on SuSE 8.0, and KDE 2.2.2 on the current Debian-Sarge (testing).    I Hope this helps.    GJ.  
Comment 4 diederic ruarus 2003-02-28 12:09:12 UTC
Thanks Geert-Jan, 
I adjusted left bottom as you suggested with text from ExtremeTech,  However, 
printing in Konqueror still misses 2 to 2.5 lines of bottom of page.  This doesn't occur 
using Mozila. 
 
Any suggestions? 
Using KDE3.0.5a, Linux Mandrake 9.0; printer HP670C, cups 
Comment 5 Daniel Naber 2003-05-12 01:19:35 UTC
*** Bug 48559 has been marked as a duplicate of this bug. ***
Comment 6 Marc Schiffbauer 2004-05-12 14:41:45 UTC
Seems resolved to me. Printing this bug report works perfectly now...