zpl 0.3.2

A high accuracy ZPL renderer
Documentation
1
2
3
4
5
6
7
8
9
10
//! POSTNET; Zebra programming guide, printed page 150.
//! Specification links and implementation limits: docs/barcodes.md.
use super::*;

pub(super) fn render(b: &Barcode, data: &[u8]) -> Result<Path, String> {
    if !matches!(data.len(), 5 | 9 | 11) {
        return Err("POSTNET requires 5, 9, or 11 digits".into());
    }
    postal::draw(b, data, false)
}