Python Forum

Full Version: Installing FPDF
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have downloaded the FPDF package zip file but have no idea how to install it. I was hoping there would be an install program with it. Has anyone done this? The documentation is mute on this point.
I have Debian 10 with Python 3.7.
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
Beautiful! Works as advertised. Thank you.
you are welcome.