Bug 52151 - Printing 4 landscape pages on one
Summary: Printing 4 landscape pages on one
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kcontrol
Classification: Unmaintained
Component: kcmprintmgr (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-20 20:07 UTC by Kde
Modified: 2018-09-04 18:04 UTC (History)
2 users (show)

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


Attachments
patch for psnup filter (multiple-pages-per-sheet) (2.01 KB, patch)
2005-06-02 20:15 UTC, Erwin Mascher
Details
updated patch, now against kdelibs 3.4.1 (2.70 KB, patch)
2005-06-15 01:16 UTC, Erwin Mascher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kde 2002-12-20 20:07:05 UTC
Version:            (using KDE KDE 3.0.5)
Installed from:    SuSE RPMs
OS:          Linux

When printing 4 landscape pages (DIN A4) and selecting four pages on one in the printer properties window in the KDE print dialogue, the psnup filter generates a page which currently looks like this:
3  1
4  2
(The numbers represent the page order/numbers)

A more reasonable order would be:
1  3
2  4

To achieve this, I suggest adding a 'landscape' on/off switch to the available options in the 'Multiple pages per sheet' filter.
The neccessary parameters which would have to be passed to psnup would be
-l -c

(Maybe even include some type of auto detection when printing a 4in1 landscape page).

Thanks
Comment 1 dandavis 2003-10-18 04:58:45 UTC
I can repeat this bug. While printing from adobe acrobat using kprinter, I have the same problem. I have an extra twist: setting the options for landscape, the 4 pages print out in portrait, and vice versa.

I disagree about what would make a reasonable order, however. I'd prefer:

1 2
3 4

Buy Buy -- Dan Davis
buybuydandavis@yahoo.com

[root@Home ]# kprinter --version
Qt: 3.1.1
KDE: 3.1-12 Red Hat
kprinter: 0.0.1
Comment 2 Surgeon 2004-12-10 00:11:32 UTC
I agree with dandavis. kprinter should check whether landscape radio button is checked and then add just add the -l parameter to psnup.
Comment 3 Kde 2005-05-24 19:49:13 UTC
I just stumbled over this problem again and the whish still seems to be open. It is so easy to implement, why not just do it?! Takes about 5 minutes (I'd even submit it myself, if someone told me how).
Comment 4 Erwin Mascher 2005-06-01 12:38:26 UTC
well, a simple workaround for me is changing
/usr/share/apps/kdeprint/filters/psnup.xml

and adding a new filter-arg:
                <filterarg name="orientation" description="Orientation" format="-%value" type="list" default="" persistent="1">
                        <value name="r" description="Seascape" />
                        <value name="l" description="Landscape" />
                        <value name="f" description="Interchanged Width/Height" />
                </filterarg>

attention: you have to define the filter yourself in the kprinter-dialog, which means you cannot simple select "2 pages on one sheet" anymore. maybe i will do a correct patch for kprinter, if i figure out where in the source to do this correctly.
Comment 5 Erwin Mascher 2005-06-02 20:15:18 UTC
Created attachment 11300 [details]
patch for psnup filter (multiple-pages-per-sheet)
Comment 6 Erwin Mascher 2005-06-02 20:16:05 UTC
attached to my previous comment is a proposed patch against kdelibs-3.4.0 that fixes this issue
patch-description:
*) this patch adds a new option to the psnup filter called "orientation"
*) it changes the behaviour of kxmlcommand.cpp so that it doesn't quote empty strings, which makes it possible to use a filterarg value with name="" to skip the parameter
*) it automatically selects orientation=landscape for the psnup filter, if the radio selectbox of the print-properties page is set to "Landscape"
Comment 7 Erwin Mascher 2005-06-15 01:16:21 UTC
Created attachment 11457 [details]
updated patch, now against kdelibs 3.4.1

updated patch, still doing said things above (which only works automatically
-i.e. adds the correct filter- when printing to a file)
plus:
*) added correct number-up-layout IPP attribute for multiple pages per sheet
when printing landscape, reverse-landscape or reverse-portrait. (at least when
tested with a CUPS-printer, HP-Deskjet 5550C) 

note that this are the correct layouts for left-to-right, top-to-bottom readers
like in the western countries. todo is to add correct support for other
orientations (i.e. combine it somehow with i18n)
Comment 8 Erwin Mascher 2005-11-26 18:38:32 UTC
just a note, that this patch applies on 3.5.0rc2 with only a small offset. any chance for getting it into cvs?
Comment 9 Thomas Bettler 2006-05-11 16:20:29 UTC
Are there any news on this?
Comment 10 Thomas Bettler 2006-05-13 09:02:00 UTC
It would be finest, if the page format (landscape) is recognized automatically without the need to set it manually in the print dialog, which I forget quite often.
Comment 11 Erwin Mascher 2006-11-09 20:56:42 UTC
another note that this patch still applies to 3_5_branch. i was wondering if there were any specific reasons that this patch does not get any developer feedback? just a lack of time - because the patch is merely 73 lines.

...think of all the poor other people out there in desperate need for correct 4-landcape-pages-on-one handling ;)
Comment 12 Erwin Mascher 2006-11-09 20:59:56 UTC
BTW: the status of this report should be changed from wishlist to bug
Comment 13 Cristian Tibirna 2006-11-10 00:41:58 UTC
I started to put it up (checks needed) twice and both times lacked time.

I will try to do it in the next week.

Thanks for the patience.
Comment 14 Nicolas L. 2007-06-06 07:37:35 UTC
Any possibility to see it in kde 3 and/or 4  soon ?
Comment 15 Ivo Anjo 2008-09-01 11:05:24 UTC
*** This bug has been confirmed by popular vote. ***
Comment 16 Andrew Crouthamel 2018-09-04 18:04:47 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I am closing this bug. Kcontrol has been replaced by System Settings in Plasma. Please give the latest version of that a try, and open a new bug in "systemsettings" if you continue to have an issue. Thank you!