Code Monkey home page Code Monkey logo

pdf417as_str's Introduction

pdf417as_str

Create pdf417 barcode by special font without using images.

image

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.

image

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, orsinium

pdf417as_str's People

Contributors

ikvk avatar pennersr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pdf417as_str's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.