HomeGuidesHow to Generate PDF417 & GS1-128 Barcodes for Logistics & Airline Boarding Passes
Developer Tools6 min readUpdated 2026-11-07

How to Generate PDF417 & GS1-128 Barcodes for Logistics & Airline Boarding Passes

Discover 2D stacked barcode architecture, error correction levels (ECC 0-8), data compaction modes, and client-side vector SVG/PNG rendering.

Need to do this immediately?

Use our free, private client-side browser tool with zero installation.

Launch In-Browser Barcode & QR Generator
PDF417 is a high-density, stacked 2D barcode standard widely deployed across airline boarding passes (BCBP), commercial shipping manifests, and state driver's licenses. Unlike traditional 1D barcodes that merely hold an ID pointer, PDF417 encodes up to 1.1 kilobytes of complete text, biometric checksums, or travel itineraries directly into printable symbols.

Stacked 2D Symbology Architecture

A PDF417 symbol consists of 3 to 90 stacked linear rows. Each row contains start/stop guard patterns, row indicator codewords, and data codewords encoding 17 modules partitioned into 4 bars and 4 spaces.

Because data is arranged in redundant layers, Reed-Solomon error correction levels (ECC 1 through 8) allow barcode scanners to reconstruct torn, smeared, or partially burned labels.

Pro Tip:For industrial shipping cartons subjected to weather exposure, configure ECC level 4 or 5 to withstand up to 25% physical surface damage.

Client-Side Zero-Leak Generation

Boarding passes and identification badges contain sensitive Personally Identifiable Information (PII) such as passport numbers and travel dates. Generating barcodes via third-party web APIs leaks passenger data to foreign server logs. DocSwift synthesizes vector SVG barcodes entirely in local browser RAM.

Step-by-Step Tutorial

1

Choose Compaction Mode

Select Text compaction (for uppercase/alphanumeric), Byte compaction (for binary binary data), or Numeric compaction (compresses 44 digits into 15 codewords).

2

Set Error Correction Level

Choose ECC Level 3 (standard documents) or ECC Level 5 (industrial logistics labels).

3

Export Sharp Vector SVG

Download as vector SVG or 300+ DPI PNG to ensure laser thermal printers produce crisp barcode bars without bleeding.

Ready to Try It Yourself?

DocSwift processes everything directly on your device. Fast, safe, and completely free forever.

How helpful was this guide?

Rated 4.9 / 5 by 3,420+ users worldwide

Share with Colleagues & Friends

Help others protect their document privacy

Frequently Asked Questions

What is the maximum data capacity of a PDF417 barcode?

A maximum PDF417 symbol can encode up to 1,850 text characters, 2,710 numeric digits, or 1,108 binary bytes.

Can smartphone cameras scan PDF417 barcodes?

Yes. Modern mobile camera software and barcode scanner SDKs (ZXing, Apple Vision) support PDF417 scanning natively.