Professional Documents
Culture Documents
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package source;
import escpos.EscPos;
import escpos.EscPos.CharacterCodeTable;
import escpos.EscPosConst;
import escpos.Style;
import escpos.barcode.BarCode;
import escpos.barcode.PDF417;
import escpos.barcode.QRCode;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.print.PrintService;
import output.PrinterOutputStream;
escpos.writeLF(title,"Code Table");
escpos.feed(2);
escpos.setCharacterCodeTable(CharacterCodeTable.CP863_Canadian_French)
;
escpos.feed(2);
escpos.writeLF("Liberté et Fraternité.");
escpos.feed(3);
escpos.writeLF("Using Portuguese code table");
escpos.setCharacterCodeTable(CharacterCodeTable.CP860_Portuguese);
escpos.writeLF("Programação java.");
escpos.feed(5);
escpos.cut(EscPos.CutMode.FULL);
escpos.close();
Logger.getLogger(CodeTableSample.class.getName()).log(Level.SEVERE,
null, ex);
}
System.exit(0);
}
CodeTableSample obj = new CodeTableSample();
obj.Sample(args[0]);