How to Solve NameError: name 'FPDF' is not defined -- fpdf

Solution: Import the 'FPDF' module

To Solve the error, add the following line to the top of your code.

from fpdf import FPDF

 

For more information:
Python fpdf FPDF