Barcode Printer for Django
# Barcode Printer for Django
This is a reusable Django application which generates PDF barcodes in various formats with a human and machine (OCR-A) readable textual label.
Currently this is used by [Adlibre DMS](http://www.adlibre.com.au/adlibre-dms/) for document barcode generation, but this application is generic and can be reused in any Django app that requires barcode printing.
[ReportLab](http://www.reportlab.com) is used for the barcode generation. And the following formats are supported:
- Code39 (3 of 9),
However it would be trivial to add support for any format that ReportLab supports.
Barcode automatically printing from URL:
![Barcode Printer for Django - Automatic Printing](https://github.com/adlibre/django-bcp/raw/master/docs/example.png)
If you use pip then the dependencies and requirements will be taken care of:
pip install git+git://github.com/adlibre/django-bcp.git
pip install -e email@example.com:adlibre/django-bcp.git#egg=bcp
## N.B. ReportLab Bug
ReportLab 2.5/2.6 has a typo. “OpenActions” should be “OpenAction” as per ISO 32000-1:2008.
<pre> diff -r broken/lib/python2.7/site-packages/reportlab/pdfbase/pdfdoc.py fixed/lib/python2.7/site-packages/reportlab/pdfbase/pdfdoc.py 1022c1022 < Dests Outlines Pages Threads AcroForm Names OpenActions PageMode URI — > Dests Outlines Pages Threads AcroForm Names OpenAction PageMode URI </pre>
You will need to manually patch this, otherwise the barcode will not automatically print:
sed -i -e ‘s@OpenActions@OpenAction@g’ lib/python*/site-packages/reportlab/pdfbase/pdfdoc.py
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-bcp-0.2.2.tar.gz (19.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|