Skip to main content

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 and 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 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

Thanks to

pennersr

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf417as_str-1.1.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdf417as-str-1.1.0.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for pdf417as-str-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e4352d7accc94c72afec2bc65343183721b72f919c3e5b45b04402a69aae57f1
MD5 24c93e53e65fdf49f8a8e8d1de325342
BLAKE2b-256 9b022c59ccdacbf18e89b2213eed179ea2d085d27bdcba0670ae2d3905f4920b

See more details on using hashes here.

File details

Details for the file pdf417as_str-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pdf417as_str-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for pdf417as_str-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bda0f979beee798d73d94e64fffab5f78ab0f88a2894339b7cc41b0b7a8cf474
MD5 43b1c6c8b9fffe674d488f9602981efc
BLAKE2b-256 0bba94640fa4b9c76614b382e8c2a88ae0be413ae633558b61ce5382b7a1efa3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.0

1 file

0.4.1

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page