Select your printer model

Parameters are refined by the selected printer.

addTextPosition method


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

Syntax

 
addTextPosition(x);

Parameter

x

Default: 0

Value

Description

Integer from 0 to 65535

Specifies the horizontal print start 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

  • Calling this API causes the printer positioned at "other than the beginning of the line." This is also true even if 0 is set to "x."
  • addTextAlign method and addTextRotate method cannot be used after running this API.
  • Setting of this API is also applied to the barcode/2D symbol/raster image/NV logo.
  • The setting of this API is applied to each line (Or to each barcode, 2D symbol, raster image, or NV logo).
    If you want to apply the setting to multiple lines, set this API to each of the lines.
 

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