File: aztec_code.py

package info (click to toggle)
fpdf2 2.8.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,352 kB
  • sloc: python: 50,410; sh: 133; makefile: 12
file content (8 lines) | stat: -rw-r--r-- 237 bytes parent folder | download
1
2
3
4
5
6
7
8
from fpdf import FPDF
from aztec_code_generator import AztecCode

pdf = FPDF()
pdf.add_page()
aztec_code = AztecCode("https://py-pdf.github.io/fpdf2/")
pdf.image(aztec_code.image(), x=10, y=10, w=100, h=100)
pdf.output("aztec_code.pdf")