Print a TEPRA label
tepra_printGenerate and print labels with text, QR codes, or images on a Tepra SR5900P. Preview the layout first if uncertain to save tape.
Instructions
Render and print a label on the TEPRA SR5900P. Consumes tape — preview first if the layout is uncertain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr | No | Payload for a QR code at the left edge. | |
| bold | No | Bold text (default: true). | |
| text | No | Lines of text, stacked top to bottom. Japanese is supported. | |
| align | No | Alignment when the label is longer than its content. | |
| copies | No | Number of identical labels to print (default: 1). | |
| halfCut | No | Score the backing paper for easy peeling (default: true). | |
| printer | No | Printer IP address. Defaults to the TEPRA_PRINTER_IP env var. | |
| lengthMm | No | Force an exact label length in mm instead of auto-sizing. | |
| marginMm | No | Blank margin at each end, in mm (default: 2). | |
| imagePath | No | Absolute path to a PNG/JPEG to place on the label. | |
| fontFamily | No | CSS font stack, e.g. "Yu Gothic UI". Defaults to a Japanese system stack. | |
| imageBase64 | No | Base64 PNG/JPEG, as an alternative to imagePath. | |
| minLengthMm | No | Pad the label out to at least this length, in mm. | |
| tapeWidthMm | No | Tape width in mm (4/6/9/12/18/24/36). Auto-detected from the printer when omitted. |