<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Print Dialog: PPD conflicts may lead to valid printer options being unavailable"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=106963#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Print Dialog: PPD conflicts may lead to valid printer options being unavailable"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=106963">bug 106963</a>
              from <span class="vcard"><a class="email" href="mailto:m.weghorn@posteo.de" title="Michael Weghorn <m.weghorn@posteo.de>"> <span class="fn">Michael Weghorn</span></a>
</span></b>
        <pre>(In reply to Mau from <a href="show_bug.cgi?id=106963#c11">comment #11</a>)
<span class="quote">> Hi, I'm running LibreOffice v7.0.4.2 on Debian testing.

> On this version is indeed possible to select the paper size but with my
> Samsung SL-M4020 printer I'm unable to print envelopes even after fixing the
> PPD until cupstestppd is happy and by deleting all the constraints with
> MediaType none (this allows at least to select envelope paper sizes).

> In order to correctly print an envelope fed into the manual feeder (it needs
> to be printed at the center of the page) I have to select the "Envelope"
> MediaType: all the constraints now look ok but when I select any envelope
> PageSize (i.e.: EnvDL) only the "Printer Default" MediaType remains
> available.

> I triple checked all the UIConstraints in the PPD file and I'm unable to
> figure out what's preventing the selection. Attaching the PPD here.

> Is this a LibreOffice bug? Could you give some advice?</span >

If I understood the steps correctly, this works here for me, also with 7.0.4.2
on Debian testing:

* set up (dummy) printer with the PPD
* select the printer in print dialog
* go to "Properties"
* select "Use only paper size from printer preferences"
* select paper size "DL Env."
* optionally: select "Paper Tray": "MP/Manual Feeder"
* go to "Device" tab and select "Paper Type" -> "Envelope" (which is present)

Maybe options set in some user-specific ~/.cups/lpoptions might play a role?
You can also try (temporarily) deleting more "UIConstraints" lines from the PPD
for testing to see which one was relevant.

If the PPD value does not appear in your case, this might be the issue
described here.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>