Skip to main content

Create pdf417 barcode by special font without using images

Project description

Create pdf417 barcode by special font without using images.

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.

pdf417_encoded_text = pdf417as_str.encode417('https://github.com', columns=5)
  1. 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*-
  1. Choose “Code PDF417” font for text, adjust line spacing. You will receive pdf417 barcode.

https://github.com/ikvk/pdf417as_str/blob/master/test/barcode.png

NOTE: Small empty space between rows will not affect 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

Thanks to

pennersr

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.0.0.tar.gz (21.2 kB view details)

Uploaded Source

File details

Details for the file pdf417as-str-1.0.0.tar.gz.

File metadata

  • Download URL: pdf417as-str-1.0.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.8.0 urllib3/1.26.13 tqdm/4.23.4 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.5

File hashes

Hashes for pdf417as-str-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c343f3ad0d5dd9ea0775f7d192b98f9bd66a40f4f7acf879ddfc1c8f182733c5
MD5 2945ade8d514b3159533fe29e065560e
BLAKE2b-256 2618b0bb1c7cd285a3411885de815b5ed470ab4a025580303e12c9040ee32b53

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page