Skip to main content

Create pdf417 barcode without using images.

Project description

Create pdf417 barcode without using images.

Python version 3.3+
License LGPLv3

How it works

  1. Install font pdf417.ttf into your OS.
  2. Encode your data string into special encoded strings.
pdf417_encoded_text = pdf417as_str.encode('')
  1. Paste encoded text into any text editor and choose “Code PDF417” font. You will receive pdf417 barcode.

NOTE: With some font sizes there will be empty space between rows. It will not affect to reading barcode, but you can find suited size anyway.

Actually you can make png barcode, using pdf417as_str.convert.to_png, but this function not efficient.


$ pip install pdf417as_str


Thanks to


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pdf417as-str, version 0.4.1
Filename, size File type Python version Upload date Hashes
Filename, size pdf417as_str-0.4.1.tar.gz (20.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page