Bug 80889 - "selected pages only" print preview works for KWord; but Kate/Kwrite show all pages in preview
Summary: "selected pages only" print preview works for KWord; but Kate/Kwrite show all...
Status: CLOSED DUPLICATE of bug 79892
Alias: None
Product: kdeprint
Classification: Unmaintained
Component: general (show other bugs)
Version: 0.0.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
: 83120 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-04 13:01 UTC by Joern Ossowski
Modified: 2016-08-17 10:33 UTC (History)
3 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 Joern Ossowski 2004-05-04 13:01:18 UTC
Version:           2.2.1 (using KDE 3.2.2, Mandrake Linux Cooker i586 - Cooker)
Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
OS:          Linux (i686) release 2.4.25-2mdk

I selected to print page 19-20 of one document. The document had more than 2000(!!) pages. But insteed of sending only the ifrst 20 pages the whole document was send to printer.
Comment 1 Christoph Cullmann 2004-10-26 00:13:36 UTC
*** Bug 83120 has been marked as a duplicate of this bug. ***
Comment 2 Anders Lund 2004-10-26 00:55:30 UTC
Yep, I have this on my list. I dont know why it changed yet.
Comment 3 Anders Lund 2005-01-13 01:58:46 UTC
I don't own a printer, so I can't test this for real. However, I have been told that if a range or set is selected, kdeprint should send only those pages to the printer, even if Kate produces ps output for the entire document.

Can anyone confirm that that is the case?

I can understand that doing so id bad for a very big document though, so I'll see if I can find a way to skip the actual drawing for unwanted pages, and end after the last wanted page.
Comment 4 Anders Lund 2005-10-30 19:17:18 UTC
Now that I actually own a printer I can confirm that only the pages defined in the range is sent to the printer.

Question: Should we implement skipping over those pages in the kate code? We still need to calculate the line height/width to be able to know which data goes into which page, so it feels kind of meaningless - how would the user know what data would go on pae 19-20???
Comment 5 Christoph Cullmann 2005-10-31 08:44:57 UTC
no, if that works, we should just close the bugreport
Comment 6 Giovanni Venturi 2005-10-31 09:41:57 UTC
You CANNOT close this bug.
You have to sent to the screen just the part that have to be printed, not the 
whole document. I have to know what I'm printing viewing the screen. I know 
that the correct part of the document is printed, but this bug tell you 
another thing. You have to fix what is sent to the preview.
Comment 7 Christoph Cullmann 2005-10-31 09:50:37 UTC
That makes no sense, if that is your problem, than you need to assign that to kdeprint, as we send our data just to kprinter, and that whole which pages are printed stuff is handled there. if preview != printer output, that's a kdeprint problem, no kate issue.
Comment 8 Giovanni Venturi 2005-10-31 10:10:33 UTC
Another bug for you. I think kprinter should be rewrite for KDE4 to avoid all this bug report ;)
Comment 9 Cristian Tibirna 2005-10-31 13:39:27 UTC
How do you select what pages to be sent to the printer?
a) by selecting them in the preview?
b) by selecting a page range in the "Copies" tab of kprinter?
Comment 10 Kurt Pfeifle 2007-01-08 23:33:36 UTC
Closed this bugreport due to...

 (a) timeout for the feedback requested by Cristian [2005-10-31 13:39]
 (b) WORKSFORME (tested with multi-page documents in KWord and Kate)

Giovanni,

feel free to re-open this report if it still bugs you. But please test with KDE 3.5.5 first.

Comment 11 Giovanni Venturi 2007-01-09 00:10:23 UTC
a) by selecting them in the preview?
No
b) by selecting a page range in the "Copies" tab of kprinter?
No

Page selection / range: 1-4

And the previews gets all the pages but to the printer goes the pages from 1 to 4.
Comment 12 Giovanni Venturi 2007-01-09 00:21:30 UTC
>  (a) timeout for the feedback requested by Cristian [2005-10-31 13:39]
>  (b) WORKSFORME (tested with multi-page documents in KWord and Kate)
Yes for KWord 1.6.1, but no with Kate 2.5.5 and with KWrite. Strange.

 kate --version
Qt: 3.3.7
KDE: 3.5.5
Kate: 2.5.5

kwrite --version
Qt: 3.3.7
KDE: 3.5.5
KWrite: 4.5.5
Comment 13 Kurt Pfeifle 2007-01-10 15:45:22 UTC
To summarize:

 (a) printing selection of pages works for all KDE applications on the
     printer

 (b) previewing the selected pages only in the kprinter preview does work
     for some applications, but not for others (though even those applications
     that show *all* pages in the preview do actually only print the pages 
     which were selected

KWord is an examples for page selection working in preview.
Kate/Kwrite is example for page selection not working in preview.

I'm currently not sure why we have this difference. I assume this is an affair of Kate/Kwrite developers to implement that they only *send* the pages that were selected to kprinter, and it may be right to assign this bug to the Kate developers. I'll do a few more tests with other applications to get a fuller picture about what the current state is.

Changing $summary + reopening bug, for now as "UNCONFIRMED" (so it's easier for me to find it when I revisit bugzilla...)

(old $summary: "I want to print a selection and the whole document was send to printer")
Comment 14 Kurt Pfeifle 2007-01-13 02:29:35 UTC
Duplicate to bug 79892

*** This bug has been marked as a duplicate of 79892 ***
Comment 15 John Layt 2008-12-31 17:12:41 UTC
Closing old Resolved status bug.

Note in KDE4 using Qt4 due to cross-platform support it is the responsibility of the app to select and render the correct page range for sending to the print system.