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

 
- (int) addPageDirection:(int) direction;

Parameter

direction

Specifies the print direction in the page mode.

Value

Description

EPOS2_DIRECTION_LEFT_TO_RIGHT (default)

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

EPOS2_DIRECTION_BOTTOM_TO_TOP

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

EPOS2_DIRECTION_RIGHT_TO_LEFT

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

EPOS2_DIRECTION_TOP_TO_BOTTOM

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

EPOS2_PARAM_DEFAULT

Specifies the default value (no rotation).

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_MEMORY

Memory necessary for processing could not be allocated.

EPOS2_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 iOS

Jump to the top