[cups-devel] [UNKN] STR #4428: Add IPP attributes required by IPP Everywhere for PWG Raster when PWG Raster as input format is supported

Till Kamppeter noreply at cups.org
Fri Jun 6 11:28:52 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

The specs for IPP Everywhere (section 5.3 "IPP Printer Description
Attributes", page 37) require the following printer IPP attributes to tell
clients which types of PWG Raster input files are supported by this
printer:

pwg-raster-document-resolution-supported
pwg-raster-document-sheet-back
pwg-raster-document-type-supported

With the attached patch I add these attributes (only if PWG Raster is
available as input format, for example with cups-filters 1.0.54 which
introduces the rastertopdf filter), so that a print queue shared by a CUPS
server completely emulates an IPP Everywhere printer and for example mobile
devices or appliances (like digital cameras) supporting IPP Everywhere
printers via PWG Raster can print on the shared CUPS queue.

The patch checks at first if PWG Raster is one of the input formats and add
the attributes only then. For pwg-raster-document-resolution-supported it
copies the arguments of "printer-resolution-supported", for
pwg-raster-document-sheet-back it always takes "normal" (the actual sheet
back handling is done on the CUPS server) and for
pwg-raster-document-type-supported it takes the following:

         "adobergb-8"
         "adobergb-16"
         "black-1"
         "black-8"
         "black-16"
         "cmyk-8"
         "cmyk-16"
         "rgb-8"
         "rgb-16"
         "sgray-1"
         "sgray-8"
         "sgray-16"
         "srgb-8"
         "srgb-16"

These are the formats the rastertopdf filter of cups-filters currently is
able to convert.

I have simply made a patch which works, feel free to put it at a different
place in the scheduler code or modify it.

Link: https://www.cups.org/str.php?L4428
Version: 1.7-current
Attachment: https://www.cups.org/strfiles.php/3332/pwg-raster-attributes.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJTkghjAAoJENujp6sI12IjEycP/iJ5NPFRWOcYogse4MDQqyvT
L8ceeonomM4ppYA3kw8uFTFVOpEeMJtmxT+6xeUcCHIcTJdVTbRdDf6ZVTrlKGhQ
KlfHWB34myRgSTes05yZuFgn+sjPxCgk4aiBmLIRcuN0F+cTXMiP8WtxRypFE8ij
oGt68r0HlEuIJQ3hUNcpZwYTXEoRYMGu8E/XM7xarUfuHr6lxfqIS2148CdErlyz
vgvX2zZFVIFTJ8i0aD+WrCFc0I0W1xVrsqwyT7zriyd70q4zNlfeG3zxK4MKWss6
Mf2LYikB4GHgsgE+bSmMgKsvlWwcrdAEG4/XWd5STxqFaclLavYi3zlIIC2mTo/t
cnhVYxjhtsBQRuTTBxcIjOddara45rMTedlae7tooFpm7ok4fXni3pMHx9iNVl94
786+lMXH8nI0355JlmnhHNHpAN9EDvfr6yim+j3BuFdvk8yry4/X0d3pZvDJ/3Mu
X4IPPXl31VPHezgPpGYYQKt2+FxQzIfiFL3a4Uqa0Qd6A6s9DJToop5lt5EowV+Q
WCSdOt1+1pDsTSMZrsmmcpc25Uc083fJgTGY8lMOplqbrgsajz/a5EghbQdYHwIb
E/enY7Lv9rMmZvkXa89GOuvhgiRC0Zl+kLJ8gJr/7gvmmmHNaD7pyom+c1Wog6Cz
TyrGRxBnH5aCtVpzWWzj
=lVJZ
-----END PGP SIGNATURE-----




More information about the cups-devel mailing list