Aspose.BarCode  for Python via .NET

PDF417 barcode in Python via .NET

Generate and Scan PDF417 barcode in Python using server-side Aspose.BarCode for Python via .NET API

About PDF417 Symbology

PDF417 (Portable Data File 417) is a group of 2D stacked barcode types designed to store large amounts of information in relatively small symbols. The number 417 in its name refers to the way a single digit is encoded, meaning that 4 bars and 4 spaces compose a 17-module pattern. This barcode type can be used to encode both streams of bytes and Unicode characters. PDF417 provides the extended metadata format, which serves to divide the input message into several barcodes and then store it in a document for later reassembly. PDF417 supports Reed-Solomon error correction and is compatible with laser scanning for use with high-quality documentation. The PDF417 specification can be found in the ISO/IEC 15438 document.
The PDF417 barcode group supports four specifications:

PDF417 Features

The PDF417 barcode type has a diverse range of applications. Such barcodes can be used to label shipping packages and containers, as well as other relevant documents, with crucial details such as tracking information, destination addresses, and contents. The healthcare industry utilizes PDF417 barcodes on medical records, prescriptions, and patient identification cards to store medical data and patient information. Retailers use these barcodes to store inventory data, pricing information, and product information on items such as price tags and product packaging. In the entertainment industry, PDF417 barcodes store event information, seating details, and pricing on tickets. Document management systems utilize this barcode type to store and retrieve important documents, such as invoices, contracts, and legal papers. Government and law enforcement rely on PDF417 barcodes to verify identity and prevent fraud, so they are often printed on government-issued ID cards and other related documents.

  • High Data Capacity: One of the key features of PDF417 is its ability to store large portions of data. It can encode alphanumeric characters, as well as binary and control characters. Such barcode can store up to 1.1 kilobytes of data or approximately 1,850 ASCII characters, making it suitable for applications that require extensive information storage.
  • Error Correction: PDF417 incorporates advanced error correction algorithms, which enable it to maintain data integrity in cases when the barcode image is distorted or corrupted. This capability makes PDF417 suitable for applications in environments where barcodes may be subject to damage or low print quality.
  • Flexibility in Printing and Scanning: PDF417 barcodes can be printed and scanned on various surfaces, including paper, plastic, or directly etched onto objects. Moreover, PDF417 supports scanning from different angles, allowing for flexibility in barcode placement and scanning orientations.


  • Transportation and Logistics: PDF417 is widely used for tracking and managing shipments. It enables the encoding of detailed shipping information, such as sender and recipient details, package contents, and tracking numbers. PDF417 barcodes enhance supply chain visibility and facilitate efficient delivery processes.
  • Government and Identification Cards: PDF417 is often employed to issue government identification cards, such as driver's licenses, national IDs, and passports. It allows for the storage of personal information, including name, address, date of birth, and other relevant details. PDF417 ensures secure identification, enables quick data retrieval, and helps prevent fraud.
  • Inventory Management: PDF417 barcodes can be used to track and monitor stock levels, product information, and batch numbers. With its high data capacity, PDF417 facilitates accurate inventory control, real-time stock updates, and efficient warehouse operations.
  • Ticketing and Access Control: PDF417 is utilized in ticketing systems for events, transportation, and access control. It enables the encoding of ticket details, such as seat numbers, event information, and entry restrictions. PDF417 barcodes support fast and reliable ticket validation, enhance access control processes, and prevent from using counterfeit tickets.

The high data capacity and error correction capabilities make this 2D symbology a popular choice for industries that require efficient encoding and storing large amounts of information. PDF417 continues to be a valuable tool for applications that demand robust barcode solutions.