Java library for controlling printers over IP. This library supports the following print protocols:
- RAW
- LPR
- Simple LPR (Boca printers)
This library also supports LPR commands and FGL markup.
Gradle:
compile("com.maxxton:internet-printer-library:${maxxton_printer_library_version}")
-
Define your printer
Printer printer = new Printer(ip);
-
Create a document
PrintDocument document = new PrintDocument("document name"); document.insert("hello world!");
-
Print the document
printer.print(document, PrintProtocol.RAW);