Select your printer model

Parameters are refined by the selected printer.

addPageArea method


Adds page mode print area setting to the command buffer.

Use the addPageArea method to specify the page mode print area (coordinates) and to specify print data by the addText or other methods.

Syntax

 
addPageArea(x, y, width, height);

Parameter

x

0 indicates the left edge of the printable area.

Value

Description

Integer from 0 to 65535

Specifies the horizontal origin in dots.

y

0 indicates the position before paper feed.

Value

Description

Integer from 0 to 65535

Specifies the vertical origin in dots.

width

Value

Description

Integer from 0 to 65535

Specifies the width of a print area in dots.

height

Value

Description

Integer from 0 to 65535

Specifies the height of a print area in dots.

Return value

Return value

Object type

Printer object

Printer

HybridPrinter2 object

HybridPrinter2

Exception

Exception

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

  • Define the print area in accordance with the contents to print. Any portion of print data outside the print area is not printed.
  • This API does not work in the standard mode.
  • Specify the width and height of the print area in accordance with the print direction setting. If the width and height of the print area do not match the print direction setting, any portion of print data outside the print area will not be printed. The print direction is specified by addPageDirection 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