berendt / sample-barcodes

Sample barcodes

Home Page:https://www.osism.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sample-barcodes

For the preparations of an asset management in combination with Netbox we needed a larger amount of barcodes for preliminary tests. Anyhow we didn't find anything usable and so this repository was created.

In principle, barcodes can be generated for all barcode types supported by bwipp/postscriptbarcode. Feel free to create a PR to add new types. treepoem is used for the creation of the barcodes.

In the directory samples is for each barcode type a README.md file with 20 generated barcode image of this type.

As PDFs:

Installation

Prepare the Python environment:

pipenv install

You’ll also need Ghostscript installed. On Ubuntu/Debian this can be installed with:

apt-get install ghostscript

On Mac OS X use:

brew install ghostscript

Usage

pipenv shell
python3 main.py

Conversion to PDFs

cd samples/azteccode; pandoc README.md -o ../azteccode.pdf; cd ../../
cd samples/code128; pandoc README.md -o ../code128.pdf; cd ../../
cd samples/code39; pandoc README.md -o ../code39.pdf; cd ../../
cd samples/interleaved2of5; pandoc README.md -o ../interleaved2of5.pdf; cd ../../
cd samples/pdf417; pandoc README.md -o ../pdf417.pdf; cd ../../
cd samples/qrcode; pandoc README.md -o ../qrcode.pdf; cd ../../

About

Sample barcodes

https://www.osism.tech

License:Apache License 2.0


Languages

Language:Python 100.0%