PDF 417 is a stacked linear bar code symbol used in a variety of applications, primarily transport, identification cards, and inventory management. PDF stands for Portable Data File. The PDF417 symbology was invented by Dr. Ynjiun P. Wang at Symbol Technologies in 1991.
Below is a simple demo for you to print PDF 417 barcodes in BIRT report, for more details, view here:
BIRT Barcode Generator - Developer Guide
Category |
Properties |
Value |
Comments |
Basic
|
Property: Data
|
Type: expression
Default: ""
- If you encode the barcode data text directly, the text string should be around by " " ", such as "12345"
- If you encode the barcode data from dataset, input the expression, such as row["CUSTOMERNUMBER"]
|
Barcode value to encode
PDF-417 Valid Data Char Set:
- Text Compaction mode permits all printable ASCII characters to be encoded, i.e. values
32 - 126 inclusive in accordance with ISO/IEC 646 (IRV), as well as selected control characters.
- Byte Compaction mode permits all 256 possible 8-bit byte values to be encoded. This
includes all ASCII characters value 0 to 127 inclusive and provides for international character set
support.
- Numeric Compaction mode permits efficient encoding of numeric data strings.
- Up to 811,800 different character sets or data interpretations.
- Various function codewords for control purposes.
|
|
PDF 417 Special |
Property: Process Tilde
|
Type: boolean
Default: true
|
Set the Process Tilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is true.
- 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
Strings from "~256" to "~299" are unused
- 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
Strings from "~665536" to "~699999" are unused
- Programming for reader initialisation: ~rp.
This should be located at the beginning of the encoding data, e.g. data = "~rpABCD1234".
- ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
|
Property: PDF 417 Data Mode
|
Type: int
Default: AUTO
|
Valid values:
|
Property: PDF 417 Error Correction Level
|
Type: int
Default: 2
|
Error correction level, values are from 0 to 8. |
Property: PDF 417 Row Count
|
Type: int
Default: 3
|
The number of rows for PDF417. The value range is from 3 to 90. The default is 3. |
Property: PDF 417 Column Count
|
Type: int
Default: 5
|
Number of columns. The value range is from 1 to 30. The default is 5. Increase this value, if your data size is large. |
Property: PDF 417 Truncated
|
Type: boolean
Default: false
|
truncated PDF417 may be used where space considerations are a primary concern and symbol damage is unlikely. |
Property: 2D Barcode Structured Append
|
Type: boolean
Default: false
|
Set Structured Append property to true, then Structured Append is enabled. |
Property: 2D Barcode Symbol Count
|
Type: int
Default: 0
|
Set Symbol Count property to the number of total symbols which make the sequence. |
Property: 2D Barcode Symbol Index
|
Type: int
Default: 0
|
Set Symbol Index property to the position of current symbol in the secuence (Start with 0). |
Property: 2D Barcode File Id
|
Type: int
Default: 0
|
Set File Id property to be identified to the same file. |
|
Barcode Size Related |
Property: Unit of Measure
|
Type: int
Default: 0 (pixel)
|
Unit of meature for all size related settings in the library.
Valid values: 0: pixel; 1: inch; 2: cm.
|
Property: X
|
Type: float
Default: 1
|
Width of barcode bar module (narrow bar), default is 1 pixel |
Property: Y
|
Type: float
Default: 30
|
Height of barcode bar module, default is 30 pixel |
Property: Left Margin
|
Type: float
Default: 0
|
Barcode image left margin size. |
Property: Right Margin
|
Type: float
Default: 0
|
Barcode image right margin size. |
Property: Top Margin
|
Type: float
Default: 0
|
Barcode image top margin size. |
Property: Bottom
|
Type: float
Default: 0
|
Barcode image bottom margin size. |
Property: Resolution (in dpi)
|
Type: int
Default: 72
|
Barcode image resolution in DPI (Dots per inch). |
Property: Rotate
|
Type: int
Default: 0 (rotate angle in 0 degree)
|
Valid values:
- 0 (rotate angle in 0 degree)
- 90 (rotate angle in 90 degree)
- 180 (rotate angle in 180 degree)
- 270 (rotate angle in 270 degree)
|
|
Font Style |
Property: Show Text
|
Type: boolean
Default: true
|
If true, display barcode data text under the barcode, otherwise do not display. |
Property: Text Font Size
|
Type: int
Default: 11
|
Barcode text font size.
|
Property: Text Margin
|
Type: float
Default: 6
|
Space between barcode and barcode data text, default is 6 pixels |