Device ID Settings.................................................................................................................................37
Sample Program Settings ....................................................................................................................39
Programming Guide ....................................................................41
■ ePOS-Print API..................................................................................................................... 41
Print Mode.............................................................................................................................................41
Programming Flow ...............................................................................................................................42
Embedding of ePOS-Print API .............................................................................................................43
Print Document Creation ....................................................................................................................44
Reception of Print Result......................................................................................................................49
Reception of Status Event ...................................................................................................................51
■ ePOS-Print Canvas API....................................................................................................... 52
Rendering in HTML5 Canvas ...............................................................................................................54
Prints an Canvas image.......................................................................................................................55
Reception of Print Result......................................................................................................................56
Reception of Status Event ...................................................................................................................58
ePOS-Print API ..............................................................................59
■ List of API functions............................................................................................................. 59
Constructor ...........................................................................................................................................65
addTextAlign method ..........................................................................................................................66
addTextLineSpace method ................................................................................................................67
addTextRotate method .......................................................................................................................68
addText method...................................................................................................................................69
addTextLang method ..........................................................................................................................70
addTextFont method ...........................................................................................................................73
addTextSmooth method .....................................................................................................................74
addTextDouble method ......................................................................................................................75
addTextSize method ............................................................................................................................77
addTextStyle method...........................................................................................................................78
addTextPosition method......................................................................................................................80
addTextVPosition method ...................................................................................................................81
addFeedUnit method ..........................................................................................................................82
addFeedLine method..........................................................................................................................83
addFeedPosition method....................................................................................................................84
addFeed method.................................................................................................................................86
addImage method ..............................................................................................................................87
addLogo method.................................................................................................................................89
addBarcode method ..........................................................................................................................90
6