Skip to main content

render_pdf

Function render_pdf 

Source
pub fn render_pdf(zpl: &str) -> ZplResult<Vec<u8>>
Expand description

Renders a ZPL string directly to native vector PDF bytes using default label dimensions (4x6 inches at 203 DPI).

§Arguments

  • zpl - The raw ZPL string to render.

§Returns

A ZplResult<Vec<u8>> containing the raw PDF document bytes.

§Errors

Returns ZplError::ParseError if the ZPL string contains malformed syntax, or ZplError::EmptyInput if input is empty.