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...
Shouldn't the underlying function (kdeprint or whatever) take care of this?
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.
Confirmed in kate KDE 4.3.0 (Kubuntu Karmic 9.10 alpha3 with updates). Is anyone maintaining this app? ??2008-04-12 ??Status: NEW
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.
Thanks for the info and workaround.
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.