Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate PDF + QR code?
#1
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]
Reply
#2
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
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
Reply
#4
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  generate UML design from python code Phaze90 2 2,465 Apr-13-2020, 11:36 AM
Last Post: Phaze90
  Generate simple melodic line from code QuarterMissiv 7 4,195 Jan-09-2020, 05:27 PM
Last Post: QuarterMissiv
  generate trades detail from code bhagwat123 0 2,354 Jul-11-2018, 06:33 AM
Last Post: bhagwat123
  How to generate more MP3 files at the same time in Amazon Polly using Python code? makiwara 2 3,753 Jul-02-2018, 08:43 PM
Last Post: makiwara
  A code to generate new files in my HDD yokharian 2 3,109 Feb-09-2018, 07:28 PM
Last Post: yokharian

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020