mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-12 01:12:16 +00:00
Generate attributes for colour and paper size
This commit is contained in:
@@ -181,6 +181,16 @@ class AirPrintGenerate(object):
|
|||||||
ptype.text = 'printer-type=%s' % (hex(v['printer-type']))
|
ptype.text = 'printer-type=%s' % (hex(v['printer-type']))
|
||||||
service.append(ptype)
|
service.append(ptype)
|
||||||
|
|
||||||
|
if attrs['color-supported']:
|
||||||
|
color = Element('txt-record')
|
||||||
|
color.text = 'Color=T'
|
||||||
|
service.append(color)
|
||||||
|
|
||||||
|
if attrs['media-default'] == 'iso_a4_210x297mm':
|
||||||
|
max_paper = Element('txt-record')
|
||||||
|
max_paper.text = 'PaperMax=legal-A4'
|
||||||
|
service.append(max_paper)
|
||||||
|
|
||||||
pdl = Element('txt-record')
|
pdl = Element('txt-record')
|
||||||
fmts = []
|
fmts = []
|
||||||
defer = []
|
defer = []
|
||||||
|
|||||||
Reference in New Issue
Block a user