Metadata-Version: 2.1
Name: reportlab-qrcode
Version: 0.1.6
Summary: Allows to create QR codes for use with the ReportLab PDF library.
Home-page: https://github.com/hprid/reportlab-qrcode
Author: Henning Pridöhl
Author-email: dev@hprid.de
License: MIT
Keywords: qrcode reportlab pdf
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: qrcode
Requires-Dist: reportlab
Provides-Extra: testing
Requires-Dist: pytest; extra == "testing"
Requires-Dist: pyzbar; extra == "testing"
Requires-Dist: pillow; extra == "testing"

reportlab-qrcode
================

reportlab-qrcode implements a QR code flowable for the ReportLab PDF library
using the [qrcode package](https://pypi.org/project/qrcode/).


Installation
------------

reportlab-qrcode can be installed via pip:

    pip install reportlab-qrcode


Usage
-----

Simply use the *QRCodeImage* class with your data. All non-recognized keyword
arguments will be passed to the *qrcode.QRCode* class from the qrcode package.

    from reportlab.lib.units import mm
    from reportlab.pdfgen.canvas import Canvas
    from reportlab_qrcode import QRCodeImage

    doc = Canvas('simple.pdf')
    qr = QRCodeImage('Some data here', size=30 * mm)
    qr.drawOn(doc, 0, 0)
    doc.showPage()
    doc.save()

For further examples, including setting fill and back colors, QR code size,
error correction level, as well as using the QR code as ReportLab Flowable
object, see the [examples directory](https://github.com/hprid/reportlab-qrcode/tree/master/examples).


Maintenance note
----------------

This package is considered completed. So please do not wonder if you see no
further commits. Despite the lack of new commits, this package is still
maintained, i. e., I plan to keep this package compatible with the newest
Python, qrcode and ReportLab version. If you find a bug, please open an issue
in the issue tracker.


License
-------

reportlab-qrcode is licensed under the MIT license. See LICENSE file for
details.

