<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello !<br><div><br></div><div>I have contacted you about this issue on year ago! Made no progress and waited for a new CUPS version to be out. With 2.2.9 on Debian the PPD API is deprecated for good! So I&#39;m back on this issue.<br></div><div> <br></div><div>With the following attached program I get:</div><div><br></div><div><span style="font-family:monospace,monospace">$ gcc -g -o cupsmed cupsmed.c -lcups &amp;&amp; ./cupsmed Epson3880<br>**** PRINTER [Epson3880]    URI:[ipp://localhost/printers/Epson3880]<br>count: 20<br>localized option: media-type<br><br>   format:           stationery      stationery<br>   format:             postcard      postcard<br>   format:  photographic-glossy      photographic-glossy<br>   format:         transparency      transparency<br>   format:             envelope      envelope<br>   format:            back-film      back-film<br>   format:   photographic-matte      photographic-matte<br>   format:          matte-heavy      matte-heavy<br>   format:    stationery-inkjet      stationery-inkjet<br>   format:    stationery-coated      stationery-coated<br>   format:                photo      photo<br>   format:  photographic-glossy      photographic-glossy<br>   format:            semigloss      semigloss<br>   format:               luster      luster<br>   format:       archival-matte      archival-matte<br>   format:  water-color-radiant      water-color-radiant<br>   format:  photographic-glossy      photographic-glossy<br>   format:               ilford      ilford<br>   format:           color-life      color-life<br>   format:                other      other</span><br><br></div>The first column if the media-type reported by ippGetString(attr, i, NULL) and the second column is a try to get the human-readable localized value using cupsLocalizeDestValue(). As you can see, in both case I have the same value.</div><div dir="ltr"><br></div><div>On my Debian box using CUPS local server (<a href="http://localhost:631">http://localhost:631</a>) I get 20 media-type too, but the names are human readable:</div><div><br></div><div>- Plain Paper</div><div>- Postcard</div><div>- Glossy Film</div><div>...</div><div>- Premium Glossy Photo Paper</div><div><div>- Premium  Semigloss Photo Paper</div><div>...</div><div>- ColorLife Paper</div><div>- Others</div><div><br></div><div>And up to now, with everything I tried I have not found the way to get those names.</div><div><br></div><div>Can someone help? Put me on the right track? I must be missing something but I see nothing in the CUPS API to do so.</div><div><br></div><div>Thanks in advance,<br></div><div><br></div></div><div dir="ltr">-- <br><div dir="ltr" class="gmail_signature">  Pascal Obry /  Magny Les Hameaux (78)<br><br>  The best way to travel is by means of imagination<br><br>  <a href="http://photos.obry.net" target="_blank">http://photos.obry.net</a><br>  <a href="http://www.obry.net" target="_blank">http://www.obry.net</a><br><br>  gpg --keyserver <a href="http://keys.gnupg.net" target="_blank">keys.gnupg.net</a> --recv-key F949BD3B</div></div></div></div></div>