Select your printer model

Parameters are refined by the selected printer.

Printer object


Controls printing by the printer.

API

Description

Text

addTextAlign method

Adds text alignment setting to the command buffer.

addTextLineSpace method

Adds line spacing setting to the command buffer.

addTextRotate method

Adds text rotation setting to the command buffer.

addText method

Adds text to print to the command buffer.

addTextLang method

Adds language setting to the command buffer.

addTextFont method

Adds character font setting to the command buffer.

addTextSmooth method

Adds character smoothing setting to the command buffer.

addTextDouble method

Adds character doubling setting to the command buffer.

addTextSize method

Adds character scaling factor setting to the command buffer.

addTextStyle method

Adds character style setting to the command buffer.

addTextPosition method

Adds character print position setting to the command buffer.

addTextVPosition method

Adds vertical character print start position setting to the command buffer.

Paper feed

addFeedUnit method

Adds paper-feed setting in dots to the command buffer.

addFeedLine method

Adds paper-feed setting in lines to the command buffer.

addFeedPosition method

Adds receipt and label sheet control setting to the command buffer.

addFeed method

Adds line spacing to the command buffer.

Graphics

addImage method

Adds a raster image print command to the command buffer.

addLogo method

Adds a NV logo print command to the command buffer.

Barcode

addBarcode method

Adds a barcode print command to the command buffer.

addSymbol method

Adds a 2D symbol print command to the command buffer.

Ruled line

addHLine method

Adds a horizontal ruled line print command to the command buffer.

addVLineBegin method

Adds a vertical ruled line start command to the command buffer.

addVLineEnd method

Adds a vertical ruled line end command to the command buffer.

Page mode

addPageBegin method

Adds a page mode start command to the command buffer.

addPageEnd method

Adds a page mode end command to the command buffer.

addPageArea method

Adds page mode print area setting to the command buffer.

addPageDirection method

Adds page mode print direction setting to the command buffer.

addPagePosition method

Adds page mode print position setting to the command buffer.

addPageLine method

Adds a page mode line draw command to the command buffer.

addPageRectangle method

Adds a page mode rectangle draw command to the command buffer.

Batch rotate print

addRotateBegin method

Adds the start batch rotate print mode to the command buffer.

addRotateEnd method

Adds the end batch rotate print mode to the command buffer.

Cut

addCut method

Adds a sheet cut command to the command buffer.

Drawer

addPulse method

Adds a drawer kick command to the command buffer.

Buzzer

addSound method

Adds a buzzer sound command to the command buffer.

Layout

addLayout method

Adds sheet layout setting to the command buffer.

Recovery

recover method

Recovers from a recoverable error.

addRecovery method

Adds an error recovery tag.

Reset

reset method

Resets the printer.

addReset method

Adds a printer reset tag.

Command transfer

addCommand method

Adds a command to the command buffer.

Transmission

send method

  • Sends a print document.
  • Send data by specifying the job ID.

print method

  • Prints the HTML5 Canvas.
  • Prints data by specifying the job ID.

Print job

getPrintJobStatus method

Acquires the print job status.

Status monitor

startMonitor method

Enables the status event.

stopMonitor method

Disables the status event.

Image

halftone property

Halftone processing method for raster images.

brightness property

Brightness compensation value for raster images.

Forced transmission

force property

Forced transmission mode

Timeout

timeout property

Transmission timeout period

Monitor interval

interval property

Printer status update interval

Drawer open

drawerOpenLevel property

Drawer signal line status

Command buffer

message property

Direct manipulation of command buffer

Reception of result

onreceive event

  • Response document reception event
  • Job ID specification reception event

onstatuschange event

Status change event

onbatterystatuschange event

Battery status change event

ononline event

Online event

onoffline event

Offline event

onpoweroff event

No response event

oncoverok event

Cover close event

oncoveropen event

Cover open event

onpaperok event

Paper remaining event

onpaperend event

Paper end event

onpapernearend event

Paper almost running out event

ondrawerclosed event

Drawer close event

ondraweropen event

Drawer open event

onbatteryok event

Battery remaining event

onbatterylow event

Battery running out event

The print mode includes the standard mode, page mode, and the batch rotate print mode.

  • Standard mode
  • Prints line by line. Line spacing is automatically adjusted according to character size, image size, and barcode height. Suitable for printing receipts whose print length varies by print content.

  • Page mode
  • Prints page by page. Prints characters, images, and/or barcodes on a single page that is defined as a print area.

    When processing in the page mode, use addPageBegin method to start and addPageEnd method to end the page mode process, respectively.

  • Batch rotate print mode
  • This is a print mode in which the range of the print data (such as characters, images, barcodes, etc.) is set, the print data in the set range is compiled, inverted, and then printed.

    When performing the processing in the batch rotate print mode, start the batch rotate print processing with addRotateBegin method, and end the batch rotate print processing with addRotateEnd method.

The APIs that can be used in each mode are described in the table below.

API

Standard mode

Page mode

Batch rotate
print mode

addTextAlign method

-

addTextLineSpace method

addTextRotate method

-

addText method

addTextLang method

addTextFont method

addTextSmooth method

addTextDouble method

addTextSize method

addTextStyle method

addTextPosition method

addTextVPosition method

-

addFeedUnit method

addFeedLine method

addFeedPosition method

-

addFeed method

addImage method

addLogo method

addBarcode method

addSymbol method

addHLine method

-

addVLineBegin method

-

addVLineEnd method

-

addPageBegin method

-

-

addPageEnd method

-

-

addPageArea method

-

-

addPageDirection method

-

-

addPagePosition method

-

-

addPageLine method

-

-

addPageRectangle method

-

-

addRotateBegin method

-

-

addRotateEnd method

-

-

addCut method

-

-

addPulse method

-

-

addSound method

-

-

addLayout method

-

recover method

-

-

addRecovery method

-

-

reset method

-

-

addReset method

-

-

addCommand method

send method

-

print method

-

getPrintJobStatus method

startMonitor method

stopMonitor method

 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for JavaScript

Jump to the top