Select your printer model

Parameters are refined by the selected printer.

addPageRectangle method


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

Syntax

 
addPageRectangle(x1, y1, x2, y2, style);

Parameter

x1

Value

Description

Integer from 0 to 65535

Specifies the horizontal draw start position in dots.

y1

Value

Description

Integer from 0 to 65535

Specifies the vertical draw start position in dots.

x2

Value

Description

Integer from 0 to 65535

Specifies the horizontal draw end position in dots.

y2

Value

Description

Integer from 0 to 65535

Specifies the vertical draw end position in dots.

style

Constant

Description

LINE_THIN

Solid line: Fine

LINE_MEDIUM

Solid line: Middle

LINE_THICK

Solid line: Thick

LINE_THIN_DOUBLE

Double line: Fine

LINE_MEDIUM_DOUBLE

Double line: Middle

LINE_THICK_DOUBLE

Double line: Thick

undefined

Solid line: Fine

Return value

Return value

Object type

Printer object

Printer

HybridPrinter2 object

HybridPrinter2

Exception

Exception

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

This API does not work in the standard mode.

 

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