Create pdf417 barcode by special font without using images
Project description
Create pdf417 barcode by special font without using images.
Python version |
3.3+ |
License |
LGPLv3 |
PyPI |
How it works
Install font pdf417.ttf into your OS.
Encode your data string into special encoded strings.
pdf417_encoded_text = pdf417as_str.encode417('https://github.com', columns=5)
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*-
Choose “Code PDF417” font for text and adjust line spacing. You will receive pdf417 barcode.
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
Thanks to
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdf417as-str-1.1.0.tar.gz
(22.7 kB
view hashes)
Built Distribution
Close
Hashes for pdf417as_str-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bda0f979beee798d73d94e64fffab5f78ab0f88a2894339b7cc41b0b7a8cf474 |
|
MD5 | 43b1c6c8b9fffe674d488f9602981efc |
|
BLAKE2b-256 | 0bba94640fa4b9c76614b382e8c2a88ae0be413ae633558b61ce5382b7a1efa3 |