Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Create pdf417 barcode without using images.

Project description

Create pdf417 barcode without using images.

Python version 3.3+
License LGPLv3
PyPI https://pypi.python.org/pypi/pdf417as_str/

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('https://github.com')
  1. Paste encoded text into any text editor and choose “Code PDF417” font. You will receive pdf417 barcode.
https://github.com/ikvk/pdf417as_str/blob/master/test/barcode.png

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.

Installation

$ pip install pdf417as_str

Authors

Thanks to

pennersr

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page