PDF417 (Portable Data File, 4 black and white bars, 17 modules) - stacked linear barcode used in transport and documents. Encoding text, numeric and byte data.
Redefinable macro add attributes for function declarations.
Literal value with 17 bars.
Literal value with 18 bars.
Error codes, where success code has value 0.
16 bit integer for encoding black and white bars. LSB is left bars, MSB is right bar. 0/1 to white/black.
Usual pattern content 17 modules, because most right white bar is implicit.
Complete structure with array of bars. Include main patterns + left/right row indicators WITHOUT start/stop patterns.
pdf417_error_t pdf417_encode(pdf417_barcode_t* barcode, const void* data, size_t size, int error_correct_level)
Encoding span data/size to bars sequence in barcode. If error_correct_level is -1, then automatic sets.
Free memory for bars array.