bvalgard / create-pdf-with-python-fpdf2

How to create a PDF with Python using fpdf2. You can watch the YouTube videos on this here https://youtube.com/playlist?list=PLjNQtX45f0dR9K2sMJ5ad9wVjqslNBIC0
57 stars 50 forks source link

AttributeError: 'FPDF' object has no attribute 'epw' #7

Closed IronicBee closed 1 year ago

IronicBee commented 1 year ago

When I try adding an image to a pdf with self._pdf.image("portrait.png", w=self._pdf.epw) I recieve AttributeError: 'FPDF' object has no attribute 'epw'. The only solution I found online was to try pip install fpdf2, but when I tried it, the requirements were met and the problem persists.