https://github.com/berendt/sample-barcodes
Sample barcodes
https://github.com/berendt/sample-barcodes
barcode samples
Last synced: 17 days ago
JSON representation
Sample barcodes
- Host: GitHub
- URL: https://github.com/berendt/sample-barcodes
- Owner: berendt
- License: apache-2.0
- Created: 2021-11-01T19:47:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-01T20:57:03.000Z (over 4 years ago)
- Last Synced: 2025-03-02T11:17:59.092Z (over 1 year ago)
- Topics: barcode, samples
- Language: Python
- Homepage: https://www.osism.tech
- Size: 269 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/bwipp/postscriptbarcode).
Feel free to create a PR to add new types. [treepoem](https://github.com/adamchainz/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.
* [azteccode](samples/azteccode/README.md)
* [code128](samples/code128/README.md)
* [code39](samples/code39/README.md)
* [interleaved2of5](samples/interleaved2of5/README.md)
* [pdf417](samples/pdf417/README.md)
* [qrcode](samples/qrcode/README.md)
As PDFs:
* [azteccode](samples/azteccode.pdf)
* [code128](samples/code128.pdf)
* [code39](samples/code39.pdf)
* [interleaved2of5](samples/interleaved2of5.pdf)
* [pdf417](samples/pdf417.pdf)
* [qrcode](samples/qrcode.pdf)
## 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 ../../
```