To convert a string of characters into the bars and spaces required for the barcode requires converting the character string into another string – made up of only the characters present in the PDF font.
The LIBDLDMLIB library will perform this conversion, and provides the barcode() function call which can generate the required string, in addition to functions for creating a pattern string, and identifying the available modes and security levels.
The Library support both PDF417 (type 0) and MicroPDF (Type 1) barcode types in all modes and security levels.
For PDF417 barcodes the following modes are available:
|
Mode parameter |
Start mode |
|
0 |
EXC Alpha |
|
1 |
EXC Lower |
|
2 |
EXC Mixed |
|
3 |
EXC Punctuation. |
|
4 |
Binary/ASCII Plus |
|
5 |
Numeric mode |
For MicroPDF barcodes the Mode parameter (or Compaction mode) may be
|
Mode Parameter |
Start Mode |
|
0 |
Text compaction |
|
1 |
Byte compaction |
|
2 |
Numeric compaction |
The LIBDLPDLIB library includes the additional setAspect() function for specifying either the width of a symbol or the height-to-width ratio.