Bug 160760 - kwrite print does not honor page range settings
Summary: kwrite print does not honor page range settings
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-12 21:05 UTC by manolis
Modified: 2009-09-29 21:50 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description manolis 2008-04-12 21:05:19 UTC
Version:           4.00.68 (KDE 4.0.68 >= 20080402) (using 4.00.68 (KDE 4.0.68 >= 20080402), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.22-gentoo-r8

I have an 8 pages , txt file
I select from the print options the page range 1 to 1
and the printer gets all 8 pages...
Comment 1 Anders Lund 2008-04-13 19:51:10 UTC
Shouldn't the underlying function (kdeprint or whatever) take care of this?
Comment 2 John Layt 2008-12-07 18:44:03 UTC
Unfortunately not, in KDE4 page selection is something KatePrinter must take care of as Qt doesn't support it because print system page range selection is not available in Windows or lpr (in KDE3 this was only available for CUPS anyway).  At the moment, KatePrinter dumps the entire page range into the print job regardless of what page range the user selects in the print dialog.  

The quick fix is to disable the print range option QAbstractPrintDialog::PrintPageRange in the print dialog.

The harder fix is to obey the page range, but that would require the concept of consistent page size and allowance for headers and legends and perhaps some visual clues for the user to know what the pagination is for the document.  Very tricky :-)  

It might perhaps be better just to have page range turned off and if the user wants to only print part of the document then they have to select the part they want printed and choose 'Selection' from the print dialog.
Comment 3 IgnorantGuru 2009-08-12 20:24:10 UTC
Confirmed in kate KDE 4.3.0 (Kubuntu Karmic 9.10 alpha3 with updates).  Is anyone maintaining this app?

??2008-04-12
??Status:  	NEW
Comment 4 John Layt 2009-08-12 21:53:14 UTC
As an update, I am working on fixing the Qt print system to support this where possible, but this won't be available until hopefully Qt 4.6 is released.

For now I'll patch Kate/KWrite to disable the Page Range option in the dialog so as not to confuse users.  To work around this users need to highlight the text they want printed using the Selection option in the dialog.
Comment 5 IgnorantGuru 2009-08-13 04:32:54 UTC
Thanks for the info and workaround.
Comment 6 John Layt 2009-09-29 21:50:15 UTC
Forgot to CC, print range disabled in commit 1010552.  Closing this bug, if you want page ranges supported then you will need to raise a separate wish.