[Libreoffice-bugs] [Bug 106963] Print Dialog ignores PPD options with empty strings

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 25 11:41:55 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=106963

--- Comment #4 from Michael Weghorn <m.weghorn at posteo.de> ---
Thanks for attaching the PPD file.

I have had a look at this. The reason why the latter two values for
"StapleLocation" are not shown is that they conflict with other options from
the PPD being set.
The "UIConstraints" directives in the PPD file specify which pair of options
may not be set together.

For example:

The default value for "StaplePos" is "PosNone" and the PPD File contains (among
others) the following directives:

~~~
*UIConstraints: *StaplePos PosNone *StapleType StapleON
*UIConstraints: *StapleType StapleON *StaplePos PosNone
~~~

This means that the value "StapleON" for "StapleType" cannot be set together
with the value "PosNone" for "StaplePos".

What LibreOffice currently does is that it hides values incompatible with other
options currently being set; therefore "StapleType StapleON" is not available
(since "StaplePos PosNone" is currently set).

At first sight, it seems like  the conflicts between the various
stapling-related options (or rather their values) in your PPD file might keep
each other from being shown so that there is no way to enable stapling from the
print dialog with the given default values.


At least one way to still make it possible to use those options is to set the
default options for a printer accordingly. It is also possible to create a CUPS
printer instance with a different set of options as default values, e.g. if
your printer is called "myprinter", you can create a printer instance
"myprinter/myinstance" with the following command:

    lpoptions -p myprinter/myinstance -o StaplePos=1PRB -o StapleType=StapleON
-o OptFIN=StplFinU1

After that (and restarting LibreOffice), an additional printer
"myprinter/myinstance" should show up in the print dialog where stapling is
enabled by default. You will also see the respective options being available
and set in the dialog.

At least for the options in the so called "InstallableOptions" section in the
PPD file, correct values should be set system-wide as they describe
hardware-specific aspects, e.g. "OptFIN" describes whether a (and what kind of)
finisher is installed.

(You can also see the situation with the conflicts when you use an application
using the Gtk+ print dialog, e.g. Firefox: As soon as you select the value
"Staple" for the option "Staple/Eco (Stpale-Free)", a warning will appear that
some settings in the dialogue do conflict.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171025/6da57567/attachment.html>


More information about the Libreoffice-bugs mailing list