[Libreoffice-bugs] [Bug 106963] Print Dialog: PPD conflicts may lead to valid printer options being unavailable

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Mar 2 08:20:52 UTC 2021


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

--- Comment #15 from Michael Weghorn <m.weghorn at posteo.de> ---
(In reply to Mau from comment #14)
> You're right Michael. I posted a version of the PPD with the stanza
> 
> *UIConstraints: *PageRegion [all but envelope/none page regions] *MediaType
> Envelope 
> *UIConstraints: *MediaType Envelope *PageRegion [all but envelope/none page
> regions]
> 
> commented out (lines 1361 to 1383 of my PPD). My bad.
> 
> That explains why you were able to select the MediaType Envelope: commenting
> out this stanza makes things work.
> 
> The answer remains: if there is no *UIConstraints preventing the selection
> of "DL Env." PageRegion along with the "Envelope" MediaType, why does
> enabling this stanza (as in the original PPD) change things?

This was the relevant line causing that behaviour:

    *UIConstraints: *PageRegion Letter *MediaType Envelope

It's not clear to me at once why this is the case; would probably need further
analysis in the source code. I suggest to open a separate bug report to handle
this aspect further.


> I'm also wondering whether it makes sense to have constraints for
> PageRegions when the same constraints exist for the PageSizes.

While the two are usually the same, there is some difference between the two.
The PPD specification contains more details. (I don't remember any more...)

> Regarding ~/.cups/lpoptions, getting rid of it unfortunately didn't change
> things when the above mentioned stanza is not commented out.

OK, that's expected; was just an idea on where the difference between behaviour
for me and you came from, but that was the different PPD in use (lines
commented out or not).

-- 
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/20210302/64eaf1af/attachment.htm>


More information about the Libreoffice-bugs mailing list