addPageDirection method
Adds the page mode print direction setting to the command buffer. Specifies the print direction in page
mode. This function can be omitted if rotation is not required.
Use this API function by inserting it between addPageBegin (p. 107) and PageEnd (p. 108).
Syntax
addPageDirection(dir);
Parameter
dir :
( Required parameter, Object type : String)
Specifies the print direction in page mode.
DIRECTION_LEFT_TO_RIGHT(default)
DIRECTION_BOTTOM_TO_TOP
DIRECTION_RIGHT_TO_LEFT
DIRECTION_TOP_TO_BOTTOM
Return value
ePOS-Print Builder Object
Exception
Parameter " ... " is invalid
Constant (dir)
Return value
Exception
Chapter 4 ePOS-Print API
Description
Left to right
(No rotation.Data is printed from the top left
corner to the right.)
Bottom to top
(Counterclockwise rotation by 90 degrees.
Data is printed from the bottom left corner
to the top.)
Right to left
(Rotation by 180 degrees.Data is printed
from the bottom right corner to the left.)
Top to bottom
(Clockwise rotation by 90 degrees.
Data is printed from the top right corner to
the bottom.)
Object type
ePOS Builder
Object type
Error
4
111