Select your printer model

Parameters are refined by the selected printer.

addPageDirection


Adds page mode print direction setting to the command buffer.

Specifies the print direction in the page mode.

Syntax

 
public void addPageDirection(int direction) throws Epos2Exception

Parameter

direction

Specifies the print direction in the page mode.

Value

Description

Printer.DIRECTION_LEFT_TO_RIGHT (default)

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

Printer.DIRECTION_BOTTOM_TO_TOP

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

Printer.DIRECTION_RIGHT_TO_LEFT

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

Printer.DIRECTION_TOP_TO_BOTTOM

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

Printer.PARAM_DEFAULT

Specifies the default value (no rotation).

Exception

When the process fails, Epos2Exception with one of the following error status occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

 

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 Android

Jump to the top