pdf417as-str


Namepdf417as-str JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/ikvk/pdf417as_str
SummaryCreate pdf417 barcode by special font without using images
upload_time2024-02-26 06:46:39
maintainer
docs_urlNone
authorVladimir Kaukin
requires_python
licenseLGPLv3
keywords pdf417 font barcode generate noimage python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            pdf417as_str
============

Create pdf417 barcode by special font without using images.

.. image:: 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 <https://github.com/ikvk/pdf417as_str/raw/master/font/pdf417.ttf>`_ into your OS.

2. Encode your data string into special encoded strings.

.. code-block:: python

    pdf417_encoded_text = pdf417as_str.encode417('https://github.com', columns=5)

3. 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*-

4. Choose "Code PDF417" font for text and adjust line spacing. You will receive pdf417 barcode.

  .. image:: 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
-------

* `Original code <http://grandzebu.net/informatique/codbar-en/pdf417.htm>`_ on VisualBasic and "Code PDF417" font:
  `Bazin Jean-Marie <http://grandzebu.net/>`_

* Porting to python, writing tests: `I'm <https://github.com/ikvk>`_

Thanks to
---------

`pennersr <https://github.com/pennersr>`_

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ikvk/pdf417as_str",
    "name": "pdf417as-str",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pdf417,font,barcode,generate,noimage,python",
    "author": "Vladimir Kaukin",
    "author_email": "KaukinVK@ya.ru",
    "download_url": "https://files.pythonhosted.org/packages/9b/02/2c59ccdacbf18e89b2213eed179ea2d085d27bdcba0670ae2d3905f4920b/pdf417as-str-1.1.0.tar.gz",
    "platform": null,
    "description": "pdf417as_str\r\n============\r\n\r\nCreate pdf417 barcode by special font without using images.\r\n\r\n.. image:: https://img.shields.io/pypi/dm/pdf417as_str.svg?style=social\r\n\r\n===================  ===========================================\r\nPython version       3.3+\r\nLicense              LGPLv3\r\nPyPI                 https://pypi.python.org/pypi/pdf417as_str/\r\n===================  ===========================================\r\n\r\nHow it works\r\n------------\r\n\r\n1. Install font `pdf417.ttf <https://github.com/ikvk/pdf417as_str/raw/master/font/pdf417.ttf>`_ into your OS.\r\n\r\n2. Encode your data string into special encoded strings.\r\n\r\n.. code-block:: python\r\n\r\n    pdf417_encoded_text = pdf417as_str.encode417('https://github.com', columns=5)\r\n\r\n3. Paste encoded text into any text editor.\r\n\r\n::\r\n\r\n    +*xfs*prA*kuk*iDo*ixA*sxn*xdw*-\r\n    +*yog*slv*Arv*Fyg*tgE*fwg*zew*-\r\n    +*uny*BCj*iaw*jcE*AxD*ykx*pDw*-\r\n    +*ftw*sgf*AoC*dAc*ajb*ofA*yrx*-\r\n\r\n4. Choose \"Code PDF417\" font for text and adjust line spacing. You will receive pdf417 barcode.\r\n\r\n  .. image:: https://github.com/ikvk/pdf417as_str/blob/master/test/barcode.png\r\n\r\nNOTE: Small empty space between rows not affects to reading barcode. Anyway you can find suited size.\r\n\r\nAlso you can make .png barcode using pdf417as_str.convert.to_png, but this function for tests and not efficient.\r\n\r\nInstallation\r\n------------\r\n::\r\n\r\n    $ pip install pdf417as-str\r\n\r\nAuthors\r\n-------\r\n\r\n* `Original code <http://grandzebu.net/informatique/codbar-en/pdf417.htm>`_ on VisualBasic and \"Code PDF417\" font:\r\n  `Bazin Jean-Marie <http://grandzebu.net/>`_\r\n\r\n* Porting to python, writing tests: `I'm <https://github.com/ikvk>`_\r\n\r\nThanks to\r\n---------\r\n\r\n`pennersr <https://github.com/pennersr>`_\r\n",
    "bugtrack_url": null,
    "license": "LGPLv3",
    "summary": "Create pdf417 barcode by special font without using images",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/ikvk/pdf417as_str"
    },
    "split_keywords": [
        "pdf417",
        "font",
        "barcode",
        "generate",
        "noimage",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0bba94640fa4b9c76614b382e8c2a88ae0be413ae633558b61ce5382b7a1efa3",
                "md5": "43b1c6c8b9fffe674d488f9602981efc",
                "sha256": "bda0f979beee798d73d94e64fffab5f78ab0f88a2894339b7cc41b0b7a8cf474"
            },
            "downloads": -1,
            "filename": "pdf417as_str-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "43b1c6c8b9fffe674d488f9602981efc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 19329,
            "upload_time": "2024-02-26T06:46:37",
            "upload_time_iso_8601": "2024-02-26T06:46:37.627186Z",
            "url": "https://files.pythonhosted.org/packages/0b/ba/94640fa4b9c76614b382e8c2a88ae0be413ae633558b61ce5382b7a1efa3/pdf417as_str-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b022c59ccdacbf18e89b2213eed179ea2d085d27bdcba0670ae2d3905f4920b",
                "md5": "24c93e53e65fdf49f8a8e8d1de325342",
                "sha256": "e4352d7accc94c72afec2bc65343183721b72f919c3e5b45b04402a69aae57f1"
            },
            "downloads": -1,
            "filename": "pdf417as-str-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "24c93e53e65fdf49f8a8e8d1de325342",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 22744,
            "upload_time": "2024-02-26T06:46:39",
            "upload_time_iso_8601": "2024-02-26T06:46:39.364990Z",
            "url": "https://files.pythonhosted.org/packages/9b/02/2c59ccdacbf18e89b2213eed179ea2d085d27bdcba0670ae2d3905f4920b/pdf417as-str-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-26 06:46:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ikvk",
    "github_project": "pdf417as_str",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pdf417as-str"
}
        
Elapsed time: 0.43426s