Bug 223161 - Print interface doesn't allow to select even/odd page (book printing also ?)
Summary: Print interface doesn't allow to select even/odd page (book printing also ?)
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: print-dialog (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-17 16:26 UTC by David Kremer
Modified: 2015-09-08 12:08 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kremer 2010-01-17 16:26:04 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Archlinux Packages

It should be good to permit to the KDE user to select if he want select the odd or the even pages of a doc. It could be a good thing also to permit him to print an A4 document (for example) as a book on a4 paper (it means a a4->a5 reduction of the pages) with a one face printer. 

If I could suggest something more specifically, you should inspire yourself from the print interface of the Acrobat Reader software (proprietary but free) used to read pdf files.

Thank you very much for this great Desktop Environment,

cheers.
Comment 1 Dario Andres 2010-01-18 13:47:54 UTC
@John: isn't this fixed on KDE SC 4.4 / Qt 4.6 ?
Comment 3 Matija Šuklje 2014-05-03 13:56:27 UTC
I just found this bug still/again(?) existing on 4.11.

IMHO this is a must feature.
Comment 4 azakitpgr 2014-05-14 10:02:00 UTC
This regression just hit me too.
I'm on Debian testing and was using okular 0.18.4, kde 4.12.4 when I noticed I could no longer print my pdf in this way.

Instead I used my wife's computer which still has the previous dialogue. 
She is using kubuntu: okular 0.14.3, kde 4.8.5.

I therefore presume the regression happened between 4.8.5 & 4.12.4
Comment 5 azakitpgr 2014-05-19 17:00:13 UTC
Looking at the source code (kdelibs/kdeui/dialogs/kdeprintdialog.cpp)
There is no difference between 4.8.5 & 4.12.4 (or indeed 4.13.1) but looking at the following code:

// Hopefully Qt 4.9 will have native support for all Cups options, Odd/Even, and page ranges
#if QT_VERSION < KDE_MAKE_VERSION(4,9,0)
    if ( KCupsOptionsWidget::cupsAvailable() ) {
        KCupsOptionsPagesWidget *cupsOptionsPagesTab = new KCupsOptionsPagesWidget( dialog );
        KCupsOptionsJobWidget *cupsOptionsJobTab = new KCupsOptionsJobWidget( dialog );
        dialog->setOptionTabs( QList<QWidget*>() << cupsOptionsPagesTab << cupsOptionsJobTab << customTabs );
        KCupsOptionsSettingsWidget *cupsOptionsSettingsTab = new KCupsOptionsSettingsWidget( dialog );
        if ( pageSelectPolicy == SystemSelectsPages ) {
            dialog->setOption( QAbstractPrintDialog::PrintPageRange, true );
            cupsOptionsSettingsTab->setSystemSelectsPages( true );
        }
    } else {
        dialog->setOptionTabs( customTabs );
    }
#else // Qt >= 4.9
    dialog->setOptionTabs( customTabs );
#endif  // Qt < 4.9

suggests that my underlying Qt was upgraded changing the branch of code used and the devs hope for Qt 4.9 native support for the lost feature was misplaced hope :-)

If I'm correct, I suggest the #if QT_VERSION < KDE_MAKE_VERSION(4,9,0) test is made more realistic so we don't lose the feature while waiting for Qt to do it natively.

Thanks
Comment 6 John Layt 2015-09-08 12:08:12 UTC
Hi, since KDE SC 4.4 / Qt 4.6 we have supported Odd/Even Pages through a bit of a background hack whenever CUPS is used (not for print to file/pdf, and maybe not in Okular?). If it's not working for you with a later combination then something is probably wrong with your distro packaging or system configuration. Qt 4.8 is the last version of Qt in the 4 series and development is closed on it for anything but security patches, and has been for some time now, so this will never be added to it. I did add it to Qt 5.0 which was the next feature release version, so all Qt5/KF5 based programs will have it. KDE4 development is also closed, so there will be no bug fixes there either. Realistically, there's nothing we can do from this end other than to suggest upgrading to KF5 / Plasma 5 based apps, so I will close this bug. Feel free to add comments though if anyone figures out what has gone wrong.