Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikvk/pdf417as_str
Create pdf417 barcode by special font
https://github.com/ikvk/pdf417as_str
barcode barcode-generator font pdf417
Last synced: 15 days ago
JSON representation
Create pdf417 barcode by special font
- Host: GitHub
- URL: https://github.com/ikvk/pdf417as_str
- Owner: ikvk
- License: lgpl-3.0
- Created: 2017-10-07T13:07:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T04:36:03.000Z (10 months ago)
- Last Synced: 2024-10-06T20:05:52.311Z (3 months ago)
- Topics: barcode, barcode-generator, font, pdf417
- Language: Python
- Homepage:
- Size: 233 KB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
pdf417as_str
============Create pdf417 barcode by special font without using images.
.. image:: https://img.shields.io/pypi/dm/pdf417as_str.svg?style=social
=================== ===========================================
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.
.. code-block:: python
pdf417_encoded_text = pdf417as_str.encode417('https://github.com', columns=5)
3. Paste encoded text into any text editor.
::
+*xfs*prA*kuk*iDo*ixA*sxn*xdw*-
+*yog*slv*Arv*Fyg*tgE*fwg*zew*-
+*uny*BCj*iaw*jcE*AxD*ykx*pDw*-
+*ftw*sgf*AoC*dAc*ajb*ofA*yrx*-4. Choose "Code PDF417" font for text and adjust line spacing. You will receive pdf417 barcode.
.. image:: https://github.com/ikvk/pdf417as_str/blob/master/test/barcode.png
NOTE: Small empty space between rows not affects to reading barcode. Anyway you can find suited size.
Also you can make .png barcode using pdf417as_str.convert.to_png, but this function for tests and not efficient.
Installation
------------
::$ pip install pdf417as-str
Authors
-------* `Original code `_ on VisualBasic and "Code PDF417" font:
`Bazin Jean-Marie `_* Porting to python, writing tests: `I'm `_
Thanks to
---------`pennersr `_,
`orsinium `_