[okular] [Bug 398442] okular doesn't respect page reverse setting of PPD or lpadmin

Frederick Eaton bugzilla_noreply at kde.org
Wed Sep 12 20:43:40 BST 2018


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

--- Comment #2 from Frederick Eaton <frederik at ofb.net> ---
$ pacman -Q qt5-base
qt5-base 5.11.1-2

Steps:

1. Configure a printer to reverse pages (using PPD or lpadmin)
2. Print something in Okular
3. The pages come out non-reversed. I would have expected them to be reversed

According to my bug report, I was able to get pages to reverse / not reverse
using the Virtual_PDF_Printer which is part of the cups-pdf package. This
provided an easy way to confirm the bug. However, I was not able to do that in
the recent version, perhaps when Till Kamppeter updated cups-filters it changed
something related to this behavior. Now all "reverse" settings, even in the
print dialog, are ignored by Virtual_PDF_Printer, in all clients. In fact,
after I just upgraded, normal printing seems to be broken on the server I used
to print. But before upgrading I was able to confirm that Okular ignores the
lpadmin and PPD settings when printing on paper.

I would suggest trying to debug using Virtual_PDF_Printer, if you can reproduce
the bug there, then you can save paper. You can use lpadmin to control the
outputorder settings:

    lpadmin -p Virtual_PDF_Printer -o outputorder-default=reverse
    lpadmin -p Virtual_PDF_Printer -R outputorder-default

Apparently this causes a line to be added to /etc/cups/printers.conf, although
I can't find any documentation of this fact:

    $ lpadmin -p HP_Photosmart_Plus_B210_series -o outputorder-default=reverse
    $ sudo systemctl restart org.cups.cupsd.service                           
    $ sudo grep outputorder /etc/cups/printers.conf 
    Option outputorder reverse
    $ lpadmin -p HP_Photosmart_Plus_B210_series -R outputorder-default         
    $ sudo systemctl restart org.cups.cupsd.service              
    $ sudo grep outputorder /etc/cups/printers.conf                   
    [1]$

Otherwise, as I said in the report, adding a line to the ppd should work as
well:

    $ sudo grep -i defaultoutput
/etc/cups/ppd/HP_Photosmart_Plus_B210_series.ppd 
    *DefaultOutputOrder: "reverse"

In both cases the setting was respected by evince and other utilities, but not
okular.

Till Kamppeter suggests it should be:

    *DefaultOutputOrder: Reverse

I'm not sure if that fixes things for Okular, but I would doubt it, as
controlling the setting via lpadmin also didn't work.

Obviously you don't want to comment out the PPD line after you add it. If it
was commented out in the PPD I uploaded, that was probably a reflection of the
state of the file at the time I was trying various settings.

A lot of my original bug was about lack of documentation, so good luck.

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


More information about the Okular-devel mailing list