I am using Android library for ESC/POS Thermal Printer.I am able to print invoice,but on second time it also print new invoice but along with old invoice.
it seems like buffer is not clearing.
Here is the library i am using in android “DantSu/ESCPOS-ThermalPrinter-Android” to print document
Here is link GitHub - DantSu/ESCPOS-ThermalPrinter-Android: Useful library to help Android developpers to print with (Bluetooth, TCP, USB) ESC/POS thermal printer.