Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing FPDF
#1
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.
Reply
#2
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
Reply
#3
Beautiful! Works as advertised. Thank you.
Reply
#4
you are welcome.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Label Maker FPDF, Reportlab jamesaarr 1 2,603 Aug-09-2021, 11:57 PM
Last Post: Pedroski55
  fpdf orientation not working properly KatMac 1 3,259 May-02-2021, 10:47 AM
Last Post: Pedroski55
  fpdf star character issue KatMac 3 2,919 May-01-2021, 06:22 PM
Last Post: KatMac
  fpdf adding a new font to my report KatMac 0 2,125 Apr-23-2021, 02:19 PM
Last Post: KatMac
  ModuleNotFoundError: No module named 'fpdf' KatMac 4 11,021 Apr-19-2021, 01:23 PM
Last Post: KatMac
  FPDF question DPaul 2 2,698 Oct-27-2020, 08:26 AM
Last Post: DPaul

Forum Jump:

User Panel Messages

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