Samples projects to use escpos-coffee library https://github.com/anastaciocintra/escpos-coffee
cd usual
mvn clean package
java -jar [samplename]/target/[samplename]-jar-with-dependencies.jar
# without argument to list the priter names
java -jar [samplename]/target/[samplename]-jar-with-dependencies.jar "printer name"
Have samples for most common functions of the escpos-coffee lib, for example, how to print an image or how to print a barcode. It is enough to make a good receipt print.
- barcode - how to print bar-codes
- charcode - how to print other languages Strings
- getstart - print escpos-coffee version
- Image Printing - some samples of how to print an image.
- bitimage - uses esc/pos sequence: "ESC '*'
- dithering - uses dithering algorithm to make image more "realistic"
- graphics-image - uses esc/pos sequence: "GS(L"
- raster-image - uses esc/pos sequence: "GS 'v' '0'"
- tcpip-stream - how to print on ethernet printer
- Text Style - how to style the text to print
More specific usages of the escpos-coffee:
- AndroidImage - (android only) How to print an image with Android Studio
- SerialStream - (desktop only) How to use Serial Port (com1, com2...) Stream
- SerialStatus - (desktop only) How to get online status of the printer using Serial port I/O
- Usb4JavaStream - (desktop only) How to use a usb port I/O
- UsbStatus - (desktop only) How to get on line status of the printer using usb port I/O
- SliceImage - (android/desktop) How to print big images (beta version to be incorporated on escpos-coffee library)
- CoffeeBitmap - (desktop only) How to construct Graphics2D, jEditorPane and html/css receipts
- PdfPrinting - (desktop only) How to print pdf content
- PdfPrintingAndroid - (android only) How to print pdf content on Android
- BarcodeGen - How to generate barcode image
The version of this project follow the versions of escpos-coffee library and each version have its own branch: For example, the version 4.0.1 can be accessed on branch 4.0.1
The branch master have always the last stable version.
Contributors are welcome, but before you do it its important to read and agree with CODE_OF_CONDUCT.md and CONTRIBUTING.md.