<div dir="ltr"><div><br></div><div>Hello,</div><div><br></div><div>Still looking for an answer to this or hint to be on the right track. With PPD API being deprecated I just can't imagine that there is no solution to this?</div><div><br></div><div>Thanks!</div><br></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 22 nov. 2018 à 14:19, Pascal Obry <<a href="mailto:pascal@obry.net" target="_blank">pascal@obry.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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'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 && ./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" target="_blank">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="m_-3398105130442564194m_-2473468997247728907gmail_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>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="m_-3398105130442564194gmail_signature" data-smartmail="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>