Skip to content

ESC/POS Java Library for thermal printers

Notifications You must be signed in to change notification settings

astrO1/esc-pos-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESC/POS Java Library for thermal printers

Build Status codecov

Synopsis

Java library for ESC/POS compatible thermal printers, serial or network connected. You can print :

  • Text
  • Barcodes
  • QRCodes
  • Images

It is largely based on work from harf18 (https://github.com/harf18/escpospi)

Code Example for Network connected printer

// 192.168.0.100 is the IP of the network connected thermal printer
// 9100 is the port of the thermal printer
Printer printer = new NetworkPrinter("192.168.0.100", 9100);
PrinterService printerService = new PrinterService(printer);

printerService.print("Test text");
printerService.cutFull()

printerService.close();

Building the project

To build the project, just use:

mvn clean package

It will generate a fat-jar in the target directory.

License

This project is licensed under the terms of the MIT license.

About

ESC/POS Java Library for thermal printers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%