[Printing-architecture] Automatic printer setup with Printer Applications

Till Kamppeter till.kamppeter at gmail.com
Wed Feb 24 20:15:16 UTC 2021


On 24/02/2021 21:01, Michael Sweet wrote:
> The "drivers" sub-command from PAPPL almost has everything needed:
> 
>     testsuite/testmainloop drivers
>     pwg_2inch-203dpi-black_1                PWG 2inch Label 203DPI Black
>     pwg_2inch-300dpi-black_1                PWG 2inch Label 300DPI Black
>     pwg_4inch-203dpi-black_1                PWG 4inch Label 203DPI Black
>     pwg_4inch-300dpi-black_1                PWG 4inch Label 300DPI Black
>     pwg_common-300dpi-black_1               PWG Office 300DPI Black
>     pwg_common-300dpi-sgray_8               PWG Office 300DPI sGray 8-bit
>     pwg_common-300dpi-srgb_8                PWG Office 300DPI sRGB 8-bit
>     pwg_common-300dpi-600dpi-black_1        PWG Office 300DPI 600DPI Black
>     pwg_common-300dpi-600dpi-sgray_8        PWG Office 300DPI 600DPI
>     sGray 8-bit
>     pwg_common-300dpi-600dpi-srgb_8         PWG Office 300DPI 600DPI
>     sRGB 8-bit
>     pwg_fail-300dpi-black_1                 PWG Always Fails 300DPI Black
> 
>     hp-printer-app drivers
>     hp_deskjet                              HP DeskJet
>     hp_generic                              Generic PCL
>     hp_laserjet                             HP LaserJet
> 
> 
> We can extend this to report the 1284 device IDs (which will give you 
> make and model separate from the driver description string along with 
> the command set(s)), and/or provide the information in a more 
> machine-friendly format.

Yes, this would be great. You could create some variants (options?) for 
the "drivers" subcommand, the current format, device ID added, only 
device ID plus driver name, every column in "..." for easy separation by 
a program, ... and the same things should be also queriable via IPP, so 
that a program does not need to run a client command line.

Device IDs could also inform about support level. An ID with make and 
model can provide an exact match to that printer which is higher 
priority than "genric" device IDs, like "CMD:POSTSCRIPT;" or 
"MFG:HP;CMD:PXL;".

    Till

    Till


More information about the Printing-architecture mailing list