I have Debian 10 with Python 3.7.
With "pip3 install fpdf" the sample below works OK:
https://github.com/reingart/pyfpdf
https://pyfpdf.readthedocs.io/en/latest/...index.html
With "pip3 install fpdf" the sample below works OK:
#!/usr/bin/python3 from fpdf import FPDF pdf = FPDF() pdf.add_page() pdf.set_font('Arial', 'B', 16) pdf.cell(40, 10, 'Hello World!') pdf.output('tuto1.pdf', 'F')See more:
https://github.com/reingart/pyfpdf
https://pyfpdf.readthedocs.io/en/latest/...index.html