Select your printer model

Parameters are refined by the selected printer.

addPageDirection method


Adds page mode print direction setting to the command buffer.

Syntax

 
addPageDirection(dir);

Parameter

dir

Constant

Description

DIRECTION_LEFT_TO_RIGHT (default)

Do not rotate data. (Data is printed rightward from the upper-left position.)

DIRECTION_BOTTOM_TO_TOP

Rotate data counterclockwise by 90 degrees.
(Data is printed upward from the lower-left position.)

DIRECTION_RIGHT_TO_LEFT

Rotate data by 180 degrees. (Data is printed leftward from the lower-right position.)

DIRECTION_TOP_TO_BOTTOM

Rotate data clockwise by 90 degrees.
(Data is printed downward from the upper-right position.)

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