Server-side network printing in java / grails

前端 未结 1 722
时光取名叫无心
时光取名叫无心 2021-01-27 04:02

I am java / grails developer working on redesigning a software system.

One of the requirements is to have a sever-side application send data to various network printers

1条回答
  •  无人及你
    2021-01-27 04:32

    Network printers are typically treated no differently from locally connected printers; they are set up in the OS first and this makes them available to the Java Print Service.

    If you need to print directly to a POS printer, they usually have their own binary protocol that you can use over TCP/UDP. Epson has the ESC/POS system, for example.

    Depending on the print server, you may be able to send PostScript straight to the printer via CUPS/LRP/LPD/IPP. See http://www.cups4j.org and http://lpdspooler.sourceforge.net.

    0 讨论(0)
提交回复
热议问题