Zpl.Document (zpl v0.3.0)

View Source

Rendered label scenes in source order and native warnings.

The reference retains the original document. Editing labels or warnings does not alter PDF output. References are opaque, local to this VM.

Summary

Functions

Encodes all labels as a multipage PDF in source order.

Types

t()

@type t() :: %Zpl.Document{
  labels: [Zpl.Scene.t()],
  reference: reference(),
  warnings: [String.t()]
}

Functions

pdf(document, limits \\ [])

@spec pdf(t(), Zpl.config()) :: Zpl.result(binary())

Encodes all labels as a multipage PDF in source order.

pdf!(document, limits \\ [])

@spec pdf!(t(), Zpl.config()) :: binary()