What is PDF417?
Standardized under ISO/IEC 15438, PDF417 (Portable Data File 417) is a high-capacity stacked two-dimensional barcode. Instead of using a matrix grid of square modules like Data Matrix or QR Code, PDF417 consists of multiple stacked linear rows, functioning as a portable, autonomous data file capable of storing extensive records without an active database connection.
+-------------------------------------------------------------+
| PDF417 ROW & COLUMN ANATOMY |
| |
| [Quiet Zone >= 2X] |
| +-------+------+-------------------------+------+------+ |
| | Start | Left | Data Column 1 ... Col N | Right| Stop | |
| | Pat | Ind | Codewords | Ind | Pat | |
| +-------+------+-------------------------+------+------+ |
| | Row 1 | R1 | C1 C2 C3 C4 | R1 | Stop | |
| | Row 2 | R2 | C5 C6 C7 C8 | R2 | Stop | |
| | Row 3 | R3 | C9 C10 C11 C12 | R3 | Stop | |
| | ... | ... | ... ... ... ... | ... | ... | |
| | Row M | RM | ... ... ... ... | RM | Stop | |
| +-------+------+-------------------------+------+------+ |
| [Quiet Zone >= 2X] |
+-------------------------------------------------------------+
Internal Compaction Modes
PDF417 maximizes storage density by automatically partitioning input characters across three optimized compaction modes:
- Text Compaction Mode (TC): Encodes 2 characters per codeword using 900 base values. Includes sub-modes for uppercase, lowercase, mixed numerals, and punctuation.
- Byte Compaction Mode (BC): Encodes raw 8-bit binary bytes into 6 codewords for every 5 bytes (using base-900 math), supporting serialized binary structures, biometric hashes, and encrypted data.
- Numeric Compaction Mode (NC): Uses base-10 to base-900 radix conversion to pack nearly 3 numeric digits into a single codeword, encoding up to 44 consecutive digits in just 15 codewords.
AAMVA Driver License Standard
The American Association of Motor Vehicle Administrators (AAMVA) specifies PDF417 as the mandatory carrier on the reverse of state-issued driver licenses and identification cards across the United States and Canada.
An AAMVA-compliant string utilizes standardized subfiles demarcated by header segments and record separators:
@
ANSI 6360000102DL00410278ZA03190011DLDAQD12345678
DCSDOE
DACJOHN
DADMIDDLE
DBD08242022
DBB01151985
DBC1
DAYBRO
DAU070 in
DAG123 MAIN STREET
DAISPRINGFIELD
DAJIL
DAK627010000
Standard AAMVA Element Identifiers:
DCS: Customer Family NameDAC: Customer First NameDAD: Customer Middle NameDBB: Date of Birth (MMDDYYYY)DAQ: Driver License Unique Identifier NumberDAG: Street Address Line 1