ZplCompliance
public static class ZplComplianceLabel compliance as code: renders ZPL and checks the rendered labels against rule packs (GS1 logistic label, Sunrise 2027, Amazon FBA, UPS, UDI or your own). Geometric rules use the rendered element geometry (bars, quiet zones, X-dimension in mm at ComplianceOptions.Dpi, bar height, interpretation line, text size, overlaps).
This is a pre-check against public specifications. It does not certify a label and does not replace carrier or retailer certification or a barcode verifier (ISO/IEC 15416 / 15415 grading needs the printed label).
Online ausprobieren auf zplCloud.com: Label-Compliance-Check
Fields & Constants
| Field | Type | Description |
|---|---|---|
const CorePackId = "core" | string | Rule id of findings that are not tied to a pack ("core" pack). |
Methods
| Method Signature | Returns | Description |
|---|---|---|
static # Analyze(string zpl, ComplianceOptions? options = default) | IReadOnlyList<ComplianceLabel> | Renders the labels and returns the measured model the rules work on (elements, barcodes with X-dimension, bar height, interpretation line, text heights). Useful for custom tooling and for writing rules. |
static # Check(string zpl, CompliancePacks packs, ComplianceOptions? options = default) | ComplianceReport | Checks zpl with the built-in packs selected by packs. |
static # Check(string zpl, IEnumerable<ComplianceRulePack> packs, ComplianceOptions? options = default) | ComplianceReport | Checks zpl with the given packs (built-in or custom). |
static # Check(byte[] zpl, IEnumerable<ComplianceRulePack> packs, ComplianceOptions? options = default) | ComplianceReport | Checks raw ZPL bytes, decoded like ZplRenderer.ProcessCommands: UTF-8 when the bytes are valid UTF-8 with non-ASCII characters, else like a printer (ZplTextEncoding, code page 850 or the one of the active ^CI). |
static # RenderAnnotated(byte[] zpl, ComplianceReport report, ComplianceOptions? options = default) | List<byte[]> | Renders the labels as PNG with the findings of report drawn on top: a frame per finding (red error, orange warning, blue info) with its rule id. |
static # RenderAnnotated(string zpl, ComplianceReport report, ComplianceOptions? options = default) | List<byte[]> |

