print("Black: 85%", "Cyan: 60%", "Magenta: 55%", "Yellow: 70%") return if == " main ": get_ink_levels("192.168.1.100") 5. Produce a Driver Feature Package (Linux – .deb or .rpm) Create a .deb package that installs a custom CUPS filter or PPD.
*PPD-Adobe: "4.3" *FormatVersion: "4.3" *FileVersion: "1.0" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "G3410.PPD" *Product: "(Canon PIXMA G3410)" *NickName: "Canon PIXMA G3410 - Borderless" *ModelName: "Canon PIXMA G3410" *OpenUI *PageSize/Media Size: PickOne *OrderDependency: 10 AnySetup *PageSize *PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice" *PageSize Borderless4x6/4x6" Borderless: "<</PageSize[432 576]/PageRegion[432 576]/ImagingBBox null>>setpagedevice" *CloseUI: *PageSize
canon-g3410-feature/ ├── DEBIAN/control ├── usr/lib/cups/filter/canon-g3410-borderless └── usr/share/cups/model/canon-g3410-enhanced.ppd control file: