<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Deepak,<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 5, 2019, at 4:31 AM, Deepak Patankar &lt;<a href="mailto:patankardeepak04@gmail.com" class="">patankardeepak04@gmail.com</a>&gt; wrote:</div><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">...</div><div class="">1. The media-col attribute is not returned in the request. How I can change the request to get media-col ?</div></div></div></div></div></blockquote><div><br class=""></div>It will only be returned if it was sent in the original print request. &nbsp;Currently we do not synthesize IPP attributes when the Job is created, just when it gets sent to an IPP printer.</div><div><br class=""></div><div>If you'd like us to do so, please file a bug at:</div><div><br class=""></div><div>&nbsp; &nbsp; <a href="https://github.com/apple/cups/issues" class="">https://github.com/apple/cups/issues</a></div><div><br class=""></div><div>Thanks!</div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">2. The paper type is given as "MediaType Envelope", How I can get the media-type from the response ? I tried: <br class=""></div><div class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ((attr = ippFindAttribute(response, "MediaType", <br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IPP_TAG_KEYWORD)) != NULL &amp;&amp; ippGetCount(attr)&gt;0){<br class=""></div></div></div></div></div></blockquote><div><br class=""></div>MediaType (like all PPD options sent as attributes) will have the IPP_TAG_NAME syntax.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ((attr = ippFindAttribute(response, "media-type", <br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IPP_TAG_KEYWORD)) != NULL &amp;&amp; ippGetCount(attr)&gt;0){</div></div></div></div></div></blockquote><div><br class=""></div>while "media-type" (the IPP attribute) can be IPP_TAG_NAME or IPP_TAG_KEYWORD, so here I'd usually look for IPP_TAG_ZERO and check for a NULL string value (which would indicate something that is not a name or keyword).</div><div><br class=""></div><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Andale Mono'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Andale Mono'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">_________________________________________________________<br class="">Michael Sweet, Senior Printing System&nbsp;Engineer</div></span></div></span>
</div>
<br class=""></body></html>