You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If discovery function has been running, it could auto choose the Printer.
Printer.print(1, 'auto', examplePayload)
In the case of USB interface, it is recommended that you obtain permission to access theUSB device in the application in advance.
In the case of USB interface, it is recommended that you obtain permission
to access theUSB device in the application in advance.
Enter the following code into the AndroidManifest.xml file.
link to download the image. Alternatively, the size tag can be used to indicate the size of the image, by default the size is 187
line
number
specifies the number of lines to skip. You can also use the text tag with new lines.
dotted
number
specifies the number of centered dotted lines. You can also use the centered tag with "------------------------------".
centered
string
centered text.
text
string
default text positioned to the left and add new line at the end. You can write a paragraph making line breaks with \n to avoid having to add several text tags.
left
string
write the text to the left without adding a new line. Using new lines can cause unexpected problems, to use a new line better use the text tag.
right
string
write the text to the right without adding a new line. left and right can be used in combination, when combined a new line will be added by default. Example:{ "left": "Celggar:", "right": "$33,024.01"}.
barcode
string
print a barcode. default (BARCODE_CODE93). Barcode Types
qrcode
string / array
print one or two QR code in a line.
Optional setting
text
Key
Type
Description
Default
align
string
specifies the alignment ("left", "right", "center").
left
width
number
specifies the horizontal scaling of characters, integer from 1 to 8.
1
height
number
specifies the vertical scaling of characters, integer from 1 to 8.
1
smooth
boolean
enables or disables smoothing.
false
bold
boolean
enables or disables the bold style.
false
underscore
boolean
enables or disables the underscore style.
false
dotted
Key
Type
Description
Default
amount
number
specifies the number of dot of dotted lines.
32
image
Key
Type
Description
Default
align
string
specifies the alignment ("left", "right", "center").
center
size
number
specifies the size of the image (in pixels).
187
barcode
Key
Type
Description
Default
align
string
specifies the alignment ("left", "right", "center").