Documentation
¶
Overview ¶
Package datamatrix encodes ISO/IEC 16022:2024 ECC 200 logical symbols.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidInput = errors.New("datamatrix: invalid input")
ErrInvalidInput reports invalid Data Matrix payloads and options.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Shape Shape
QuietZone int
MinWidth int
MinHeight int
MaxWidth int
MaxHeight int
GS1 bool
ECI int
Macro Macro
StructuredAppend *StructuredAppend
}
Options controls Data Matrix shape, dimensions, and quiet zone.
type StructuredAppend ¶
StructuredAppend identifies one part of a two-to-sixteen-symbol sequence.
type Symbol ¶
type Symbol struct {
// contains filtered or unexported fields
}
Symbol combines an immutable logical symbol with Data Matrix metadata.
func Encode ¶
Encode returns an ECC 200 logical matrix with a one-module quiet zone by default. Dimension constraints refer to the symbol before its quiet zone.
func EncodeGS1 ¶
func EncodeGS1(elements gs1.ElementString, options Options) (Symbol, error)
EncodeGS1 serializes validated GS1 elements and emits first-position FNC1.
func (Symbol) StructuredAppend ¶
func (symbol Symbol) StructuredAppend() (StructuredAppend, bool)
StructuredAppend returns a defensive copy of the sequence header.