User Manual
Back-Clip Print-Scan All in One Device
g) Cut pager
cutPaper()
h) Ring buzzer, param is ring time
ringBuzzer(byte time)
i) Open cashbox
openCashbox(boolean cashbox1, boolean cashbox2)
4. Set method:
a) Set character encoding of print text.
setEncoding(String encoding)
b) Set character width and height. x is width, y is height. 0<=x,y<=7,
default is 0.
setCharacterMultiple(int x, int y)
c) Set left edge distance of print area, usually nH value is 0.
setLeftMargin(int nL, int nH)
d) Set print model.
setPrintModel(boolean isBold, boolean isDoubleHeight,
boolean isDoubleWidth, boolean isUnderLine)
isBold:bold
isDoubleHeight:double height.
isDoubleWidth:double width.
isUnderLine:under line.
e) Set printer (Command constant start with “PrinterConstants.Command.”
setPrinter(int command)
INIT_PRINTER:init printer( equal to method init() )
WAKE_PRINTER:wake up printer
PRINT_AND_RETURN_STANDARD:page model print and return to standard
PRINT_AND_NEWLINE:print and move to next line.
PRINT_AND_ENTER:print and enter.
MOVE_NEXT_TAB_POSITION:move to the position of next tab.
DEF_LINE_SPACING:restore default line space.
setPrinter(int command, int value)
PRINT_AND_WAKE_PAPER_BY_LNCH:
print and wake paper “value ” height (lnch)….
PRINT_AND_WAKE_PAPER_BY_LINE:print and wake paper “value” lines
CLOCKWISE_ROTATE_90:clock wise rotate 90degree, 0-false, 1-true
LINE_HEIGHT:Set line height
CHARACTER_RIGHT_MARGIN:Set character right margin
ALIGN:Align model. Three model’s const value is:
ALIGN_LEFT: left margin
ALIGN_CENTER: center margin
ALIGN_RIGHT: right margin
15