Python Forum

Full Version: Generate PDF + QR code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I know nothing about PDF and QR code.

I'd like to write a Python3 script to avoid filling forms over the web.

The script would…
1. Read infos from a text file or database
2. Create a QR code that includes those infos, as an easy way to read them off a smartphone/printed letter
3. Generate a PDF.

What tools would you recommend?

Thank you.

[Image: image.png]
Look at https://python-forum.io/Thread-Requireme...#pid107157
I think there were couple more similar threads - use the search form to search for QR code
You generate your barcode or qrcode with a tool (eg. svglib.svglib)
You save them as a picture or graphic.
That you can import in a pdf writing lib like fpdf.
Done.

Paul
I wrote a short post on how to create QR codes in Python
using the pyqrcode module which might get you started.
https://stevepython.wordpress.com/2020/0...e-qr-codes