161
Chapter 5 ePOS-Print Canvas API
5
ePOS-Print Canvas API
This chapter describes the ePOS-Print Canvas API.
List of ePOS-Print Canvas API functions
The ePOS-Print Canvas API provides the following object:
❏ ePOS-Print Canvas API (window.epson.CanvasPrint) object (p. 161)
window.epson.CanvasPrint Components
Element API Description Page
Constructor
CanvasPrint Initializes an ePOS-Print Canvas API object. 164
method
print Prints an HTML5 Canvas image. 165
open
Enables status event operation
(in firmware Ver.1.2 and later)
167
close
Disables status event operation
(in firmware Ver.1.2 and later)
168
recover
Recovers from an error
(in firmware Ver.3.0 and later)
169
reset
Resets the printer
(in firmware Ver.3.0 and later)
169
Property
address
URL of the printer
(in firmware Ver.1.2 and later)
170
enabled
Enabling/disabling of status event
(in firmware Ver.1.2 and later)
171
interval
Printer status update interval
(in firmware Ver.1.2 and later)
172
status Status (in firmware Ver.1.2 and later) 173
battery Battery status 174
timeout Connection timeout 175
halftone
Raster image halftone processing method
(in firmware Ver.1.2 and later)
176
brightness
Raster image brightness correction value
(in firmware Ver.1.2 and later)
177
cut Paper cut 178