Python Forum
Installing FPDF - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Installing FPDF (/thread-18843.html)



Installing FPDF - Batman - Jun-03-2019

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.


RE: Installing FPDF - heiner55 - Jun-03-2019

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/Tutorial/index.html


RE: Installing FPDF - Batman - Jun-04-2019

Beautiful! Works as advertised. Thank you.


RE: Installing FPDF - heiner55 - Jun-04-2019

you are welcome.