Select your printer model

Parameters are refined by the selected printer.

addPagePosition method


Specifies the print start position (coordinates) within the print area specified by addPageArea method and adds print position setting within the print area in the page mode to the command buffer.

Syntax

 
addPagePosition(x, y);

Parameter

x

Default: 0

Value

Description

Integer from 0 to 65535

Specify the horizontal print position in dots.

y

Default: 21

Value

Description

Integer from 0 to 65535

Specify the horizontal print position in dots.

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.
  • Define the print start position (coordinates) in accordance with the contents to print.
  • Print data

    Specification method

    String

    Specify the leftmost position of the baseline for the first character.

    This can be omitted when printing data with the standard size in left justification. When printing a double-height character, set y to 42 or larger.

    Barcode

    Specify the lower-left position of the symbol. Specify the height of the barcode in y.

    Graphics/logo

    Specify the lower-left position of the graphic data. Specify the height of the graphic data in y.

    2D symbol

    Specify the upper-left position of the symbol. This can be omitted when printing from the upper-left position.

 

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