# Label Print

Board service provides a function to dynamically generate commands for label printers to output rendered board images to barcode label printers.
When creating a label print command, it must be encoded in consideration of the label printing output direction.

The 'label rotation' property is a property to set the output direction.

## Label printing function

- Provides ZPL II commands. Therefore, in order to use the label printer output commands, a label printer supporting ZPL II must be used.
- To get the label command, enter the URL in the browser in the following way.
  - https://{server:port}/domain/{domain name}/label-command/{board ID}

```
[example]
https://vis.hatiolab.com/domain/wellstek/label-command/c7149950-f3ce-489d-b88d-d82b67e43122
```

## Calculate label print size

See [Set board size](./size.md)

- Since the board size means output pixels, set the width and height according to the resolution of the label printer.
- The width of 10 centimeters is calculated as follows according to each resolution (dpi).
  - 203 dpi : 203 dpi x 10 cm / 2.54 ~= 800
  - 300 dpi : 300 dpi x 10 cm / 2.54 ~= 1181
