[Okular-devel] [okular] [Bug 322993] Okular always prints in duplex mode

dolgener at informatik.uni-erlangen.de dolgener at informatik.uni-erlangen.de
Mon Aug 26 09:40:05 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=322993

--- Comment #10 from dolgener at informatik.uni-erlangen.de ---
Somewhat irreverent, I now just did
 cd ~/bin # This is in front of my $PATH
 echo 'kdialog --msgbox "Capturing lpr input to /tmp/test.dat"' > lpr
 echo 'echo $* > /tmp/test.dat' >> "' > lpr
 chmod a+x lpr

Then I printed myfile.pdf with okular in the three duplexing variants and
renamed the resulting /tmp/test.dat. This captured three lpr commandlines
indeed!

1) The baseline: no duplexing
-P myprinter -#1 -J myfile.pdf -o media=A4 -o portrait -o sides=one-sided      
    -o outputorder=normal -o Collate=False -o Duplex=DuplexNoTumble -o
OptionDuplex=True -r /tmp/kde-myself/okularSomeFilename.ps

2+3) Only one different Option for the two duplexing variants:
  ...  -o sides=two-sided-long-edge ...
  ...  -o sides=two-sided-short-edge ...

And if I print myfile.pdf using evince, no messagebox is triggered and no
fake-lpr output is captured, instead the printer works.
Now we can test lpr directly:
   /usr/bin/lpr -P myprinter -o sides=one-sided -o OptionDuplex=True myfile.ps
and it's duplexed again.

So the guesswork in chapter 9 above was not too bad.
(However, still no way to use that printer directly from KDE applications,
except changing CUPS default before!)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list