Skip to main content

addTextAlign

addTextAlign​

Adds a text alignment command to the command buffer.

Parameters​

align​

  • number

Specifies alignment.

ValueDescription
PrinterConstants.ALIGN_LEFT (default)Left alignment
PrinterConstants.ALIGN_CENTERCenter alignment
PrinterConstants.ALIGN_RIGHTRight alignment
PrinterConstants.PARAM_DEFAULTSpecifies the default value (left alignment).

Returns​

Promise<void>

Errors​

Error statusDescription
ERR_PARAMAn invalid parameter was passed.
ERR_TIMEOUTFailed to communicate with the devices within the specified time.
ERR_MEMORYNecessary memory could not be allocated.

Supplementary explanation​

  • Setting of this API is also applied to the barcode/2D symbol/raster image/NV logo.