I have install Epson SDK to android, and added the below code" how to print direct to Epson PDF
Printer printer = null; try { printer = new Printer(Printer.TM_M30, Printer.MODEL_ANK, this); } catch (Epos2Exception e) { //Displays error messages } //new final Context mContext = this; printer.setReceiveEventListener(new ReceiveListener() { @Override public void onPtrReceive(Printer printer, int code, PrinterStatusInfo printerStatusInfo, String s) { if (code == com.epson.epos2.Epos2CallbackCode.CODE_SUCCESS){ }else{ Toast.makeText(mContext, "Printer can't be connected. Please try again", Toast.LENGTH_SHORT).show(); } } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)