/pyPdf417

PDF417 Barcode Generator in Python

Primary LanguagePythonMIT LicenseMIT

pyPdf417

PDF417 Barcode Generator (alpha, currently supports only text-mode)

Basic usage

from pdf417 import PDF417
pdf = PDF417('This is the text sample which will be converted to barcode')
pdf.save_to_image_file('mybarcode.png')

Known bugs

Non-ASCII text will probably return invalid bar code
Text shorter than 5 characters will probably return invalid bar code