跳至正文

Labelize Tutorials

Step-by-step guides for using Labelize on each platform. Every platform uses the same Rust rendering engine and supports ZPL, EPL, TSPL/TSC, CPCL and DPL. Match input bytes, dimensions and output options when comparing platforms; wrapper defaults can differ. For reference material, see the documentation index.

Tutorial Platform Start here if you want to…
Command Line macOS · Linux · Windows Convert label files to PNG/PDF from a shell
Docker Any host with Docker Run a self-hosted conversion service in a container
HTTP Service Bare metal · container · Cloudflare Workers Convert labels over a REST API, use the web playground
JavaScript / WebAssembly Node.js · bundlers · browsers Render labels client-side with @goodboy008/labelize-wasm
Android Android (minSdk 24) Render labels inside an Android app via the AAR
Rust Library Any Rust project Call the parser/renderer directly from Rust code

Picking a surface

Common concepts

A few terms shared by every tutorial:

  • Input language — ZPL, EPL, TSPL/TSC, CPCL or DPL. Select it explicitly or use the detection supported by the platform: file extension, content type or input bytes. See each tutorial for its defaults.
  • Label size — width × height in millimetres. Native high-level APIs use explicit dimensions, then supported label-declared dimensions, then 102 × 152 mm (approximately 4″ × 6″). The hosted Worker's raster mode defaults omitted dimensions to 102 × 152 mm; its vector mode uses declared dimensions before that fallback. Send explicit dimensions when needed.
  • dpmm — dots per millimetre, i.e. print resolution. 8 dpmm = 203 dpi (most common), 6 dpmm = 152 dpi, 12 dpmm ≈ 305 dpi, 24 dpmm ≈ 610 dpi (often called 300/600 dpi classes). Higher dpmm → larger pixel dimensions for the same physical size.
  • PNG vs PDF — raster output is the default: PNG is black/white unless antialiasing is enabled, and PDF embeds the rendered image. Both PNG modes use 8-bit grayscale samples. Opt-in vector output adds searchable native PDF text, scalable geometry, multipage PDF and PNG scaling independent of the source printer resolution.

Try it without installing anything

The public playground runs the latest main build: https://labelize.764629910.workers.dev/playground/ — paste ZPL/EPL/TSPL/CPCL/DPL, preview, download PNG/PDF, and optionally score your render against the Labelary reference.

在 GitHub 查看源文件