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

Metadata

Release files for pdf417as-str 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf417as-str 1.1.0
File Size Uploaded
pdf417as-str-1.1.0.tar.gz 22.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdf417as-str 1.1.0
File Interpreter ABI Platform
pdf417as_str-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.1 kB

Release files / pdf417as-str-1.1.0.tar.gz

Download URL pdf417as-str-1.1.0.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e4352d7accc94c72afec2bc65343183721b72f919c3e5b45b04402a69aae57f1
BLAKE2b-256 checksum
How to use checksums
9b022c59ccdacbf18e89b2213eed179ea2d085d27bdcba0670ae2d3905f4920b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.4

Release files / pdf417as_str-1.1.0-py3-none-any.whl

Download URL pdf417as_str-1.1.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bda0f979beee798d73d94e64fffab5f78ab0f88a2894339b7cc41b0b7a8cf474
BLAKE2b-256 checksum
How to use checksums
0bba94640fa4b9c76614b382e8c2a88ae0be413ae633558b61ce5382b7a1efa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

1 release file

0.4.1

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page