getLabelSimulation
Render a label to an image.
Parameter
| Key | Type | Description |
|---|---|---|
| labelName | string | Name of the label in the database. Mutually exclusive with labelData. |
| labelData | object | A Label object. Mutually exclusive with labelName. |
| printer | string | Optional printer ID. When specified, uses that printer's fonts and resolution for rendering. |
| env | object | Optional variable overrides applied before rendering. |
Return value
| Key | Type | Description |
|---|---|---|
| data | string | Base64-encoded PNG image data. |
| width | number | Image width in pixels. |
| height | number | Image height in pixels. |
| mimeType | string | Always "image/png". |
Example
getLabelSimulation {"labelName": "MyLabel"}