Logosulfite.app
rafagazani/sulfite 999999

ZPL Export#

Sulfite supports exporting label reports as ZPL (Zebra Programming Language).

Requirements#

  • The report must define pageSettings.labelConfig.
  • format: 'zpl' generates UTF-8 text with one ^XA ... ^XZ block per label.

Example#

final bytes = await engine.generate(
  report,
  dataPayload: payload,
  format: 'zpl',
);

You can then send the returned bytes directly to a thermal printer queue, TCP socket (9100), or any integration that accepts raw ZPL commands.

Notes#

  • ZPL is intended for thermal label printers and is not available for non-label reports.
  • When LabelConfig.zpl is omitted, Sulfite uses sensible defaults (203 DPI, UTF-8, 1 copy).