Actions28
- Document Actions
- Traceability Actions
- Lookup Table Actions
- Printer Actions
- Label Actions
Label → Preview ZPL
AI-generatedSummary
Generate a PNG preview image from a ZPL label template and data substitution
Inputs
- labelTemplate (required) — ZPL template with tokens like {{.SerialNumber}}, {{.PartNo}}
- labelData — Data to substitute in the template
- labelWidth — Width of the label in inches (range: 0.5 to 12)
- labelHeight — Height of the label in inches (range: 0.5 to 12)
- labelDensity — Print density for preview: 6dpmm (152 DPI), 8dpmm (203 DPI), 12dpmm (300 DPI), or 24dpmm (600 DPI)
- labelRotation — Rotation angle for preview: 0, 90, 180, or 270 degrees
Output shape
JSON object with success and message fields, plus a binary PNG preview
The node returns {success: true, message: 'ZPL preview generated'} with a binary preview field containing the PNG image data as label_preview_
.png
Examples
Example 1: Workflow builder substitutes serial number and part number into a ZPL template, previews the label at 203 DPI with 4x6 inch dimensions and 0° rotation
labelTemplate: '{{.SerialNumber}}-{{.PartNo}}', labelData: {SerialNumber: 'SN123', PartNo: 'PN456'}, labelWidth: 4, labelHeight: 6, labelDensity: '8dpmm', labelRotation: 0