I have a FPDF object like this:
import fpdf
pdf = FPDF()
#Cover page
pdf.add_page()
pdf.set_font('Arial', 'B', 16)
pdf.cell(175, 10, 'TEST - report',0,1,'C')
I'm trying to use a .png file from AWS S3 bucket directly to generate a PDF, like so:
pdf.image(bucket_folder_name + '/' + file_name + '.png')
Unfortunately, I get the error:
[Errno 2] No such file or directory
What is the issue?