Bug 209620 - okular does not respect print queue defaults
Summary: okular does not respect print queue defaults
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 211419 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-06 12:54 UTC by Roderick Johnstone
Modified: 2010-10-14 00:56 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Program to list default duplexing from a cups server (471 bytes, text/plain)
2009-11-04 12:26 UTC, Roderick Johnstone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roderick Johnstone 2009-10-06 12:54:50 UTC
Version:           0.9.1 (using KDE 4.3.1)
OS:                Linux
Installed from:    Fedora RPMs

Please excuse another BZ entry for printing but I didn't find one of the already open reports that quite matches this one.

I'm on Fedora Rawhide x86_64, kde 4.3.1, qt 4.5.2, okular 0.9.1.

When using okular to print a pdf to a duplex printer though cups with duplex set on by default for the queue the document comes out single sided, ie only one side of the paper printed on.

In the print dialogue, Properties/advanced shows 2-sided printing set to Long-Edge Binding.

Options/options tab shows Duplex printing set to None.

I expected the options/options tab to show Duplex printing set to Long side and the job to be printed on both sides of the paper.

Selecting Options/options tab Duplex printing = Long side prints the job properly on both sides of the paper.

In summary, the job doesnt print as expected from the queue defaults, but it does reflect the settingin the Options/options tab

Other kde applications print in duplex by default as expected, but they also have the options/options tab Duplex printing set to None. I will log another report about those.
Comment 1 Roderick Johnstone 2009-10-06 15:09:48 UTC
Other BZ referred to is #209621
Comment 2 Roderick Johnstone 2009-10-15 16:22:49 UTC
It would be useful to know if anyone else sees this problem at all. If not I'll assume its a quirk of my system configuration and start looking to see what caused it myself.
Comment 3 Albert Astals Cid 2009-10-19 22:07:12 UTC
I've no idea on how to set queue defaults, but as far as i can see we are doing it right except in the part that the dialog does not "read" the queue defaults, right?

Any tip on how to set those?
Comment 4 Albert Astals Cid 2009-10-22 20:01:19 UTC
*** Bug 211419 has been marked as a duplicate of this bug. ***
Comment 5 Roderick Johnstone 2009-11-04 12:23:53 UTC
Albert: I just re-read your comment #3 and realized that maybe I can answer this after all.

In our case the printing system is cups and the printer queue defaults are set though the printer ppd files on the cups server.

You can get the current defaults using the cupsGetOption function described at  http://www.cups.org/documentation.php/doc-1.4/api-cups.html#OPTIONS

I'll attach a simple program, modified from an example on that page, which returns the printer default for duplexing. You need to link it against libcups.so

Option names are described at: http://www.cups.org/documentation.php/doc-1.4/options.html

Does this answer your question?
Comment 6 Roderick Johnstone 2009-11-04 12:26:09 UTC
Created attachment 38080 [details]
Program to list default duplexing from a cups server
Comment 7 Albert Astals Cid 2009-12-23 21:35:37 UTC
Closing the bug as this is not *kde* problem, it is Qt one, probably either http://bugreports.qt.nokia.com/browse/QTBUG-6471 or http://bugreports.qt.nokia.com/browse/QTBUG-6433

Feel free to register in Qt bug tracker and vote for these issues
Comment 8 Frans Leerink 2010-03-30 14:21:24 UTC
Hallo,

I was entering a bug report about this problem and it happens also in my 

openSUSE 11.2/ KDE 4.3.5 release 0 in exactly the same way.

Also by setting in file/print/optios/options the long side flag in stead of none prints duplex
Comment 9 Roderick Johnstone 2010-03-30 14:46:23 UTC
@Frans:  This is all fixed in kde 4.4, and the qt library version it requires. Of course you may have to wait for this to be released in your distro unless you built it yourself.
Comment 10 avlas 2010-10-12 20:10:25 UTC
Is it fixed? I suffer this bug in Kubuntu Maverick with Kde 4.5.2 :(
Comment 11 Ferdinand Gassauer 2010-10-13 09:26:26 UTC
May be my setup is screwed up,
printing from all programs work but not from okular 
(now on KDE 4.5.2 OpenSuSE , libqt4-4.7.0-134.1.x86_64)
espcially same pdf from evince and acroread work without problems
* page orientation - displayed landscape is often printed portrait on landscape or landscape on portrait
* CUPS queue settings (double side printing) are overwritten - must specify double side printing for each document
Comment 12 Jörg Kampmann 2010-10-14 00:56:11 UTC
hi, I have the same problem here with Suse linux 11.3 (Kde 4.4.4) and Okular 0.10.4 ... Somebody here told me that this could be a Qt-Problem ... I did not yet follow this hint. 

anybody knows a solution?
cheers Jörg