Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portable Data File 4 17

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.

Specifications: RU, EN.

Documentation

PDF417_API

Redefinable macro add attributes for function declarations.

PDF417_START_PATTERN

Literal value with 17 bars.

PDF417_STOP_PATTERN

Literal value with 18 bars.

pdf417_error_t

Error codes, where success code has value 0.

pdf417_bars_t

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.

pdf417_barcode_t

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.

void pdf417_release(pdf417_barcode_t* barcode)

Free memory for bars array.

About

Simple encoding of PDF417 barcode

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages