Skip to content

Commit

Permalink
Merge pull request #805 from alexpevzner/2.4.x
Browse files Browse the repository at this point in the history
cups/ppd-cache.c: Add cupsUrfSupported to generated PPD (see #804)
  • Loading branch information
alexpevzner authored Nov 7, 2023
2 parents 920dd4e + 0736b61 commit 7a73012
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cups/ppd-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -3478,6 +3478,20 @@ _ppdCreateFromIPP2(
if (!is_apple && !is_pdf && !is_pwg)
goto bad_ppd;

/*
* cupsUrfSupported
*/
if ((attr = ippFindAttribute(supported, "urf-supported", IPP_TAG_KEYWORD)) != NULL)
{
cupsFilePuts(fp, "*cupsUrfSupported: \"");
for (i = 0, count = ippGetCount(attr); i < count; i ++)
{
keyword = ippGetString(attr, i, NULL);
cupsFilePrintf(fp, "%s%s", keyword, i ? "" : ",");
}
cupsFilePuts(fp, "\"\n");
}

/*
* PageSize/PageRegion/ImageableArea/PaperDimension
*/
Expand Down

0 comments on commit 7a73012

Please sign in to comment.