Adds a text alignment command to the command buffer.
number
Specifies alignment.
Value | Description |
---|---|
PrinterConstants.ALIGN_LEFT (default) |
Left alignment |
PrinterConstants.ALIGN_CENTER |
Center alignment |
PrinterConstants.ALIGN_RIGHT |
Right alignment |
PrinterConstants.PARAM_DEFAULT |
Specifies the default value (left alignment). |
Promise<void>
Error status | Description |
---|---|
ERR_PARAM | An invalid parameter was passed. |
ERR_TIMEOUT | Failed to communicate with the devices within the specified time. |
ERR_MEMORY | Necessary memory could not be allocated. |
- Setting of this API is also applied to the barcode/2D symbol/raster image/NV logo.