1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Parse ZPL command streams and render output-independent label scenes.
//!
//! [`render()`] converts ZPL bytes into a [`render::Document`] containing label
//! scenes and rendering warnings. [`Options`] controls dimensions, resolution,
//! and compatibility behavior; its default selects the ZD621 203-DPI profile.
//! See [`render::profiles`] for other printer and specification profiles.
//!
//! Output adapters in [`output`] encode scenes as PNG, SVG or PDF. For direct pixel
//! access, use [`output::raster::rasterize`]. Runtime bitmap providers implement
//! [`fonts::BitmapFont`]; decoded strike types live in [`bitmap_font`]. Bundled
//! glyph data uses `zpl-bitmap-fonts`.
//!
//! For command framing without rendering, use [`parse::ParseContext`]. The
//! parser preserves unknown commands and binary payloads; successful parsing
//! does not imply that the renderer supports the input.
//!
//! ```
//! use zpl::{render, Options};
//!
//! let document = render(b"^XA^FO20,20^FDHello^FS^XZ", Options::default())?;
//! assert_eq!(document.labels.len(), 1);
//! # Ok::<(), zpl::render::RenderError>(())
//! ```
pub use ;