cordova-plugin-epson-spectrum
A Cordova Epson Printer Plugin
Install
Cordova: cordova plugin add cordova-plugin-epson-spectrum
Tested successfully with
Usage
Implemented methods
* addTextAlign
* addText
* addTextLang
* addTextPosition
* addTextSmooth
* addTextFont
* addTextSize
* addTextStyle
* addFeedLine
* addCut
* addBarcode
* addFeedUnit
* addTextRotate
* addHLine
* addSound
Print method
var args = [{
printer: {
model: "TM-P20",
lineTimeout: 1000,
connectionType: "bluetooth",
autoconnect: true,
address: "00:01:90:72:2A:BE"
},
builder: [
{
method: "addText",
params: [
{
index: 0,
value: "SC TEST SRL" + "\n"
}
]
}
]
}];
window.plugins.epson.print(function (succes) {
alert("succes: " + succes);
},
function (err) {
alert("error: " + err);
},
args);