pyfpdf icon indicating copy to clipboard operation
pyfpdf copied to clipboard

Python FPDF.output() glitches with AWS Lambda

Open rahuldalal99 opened this issue 2 years ago • 1 comments

Hello,

I am trying to execute my python program to generate pdfs using FPDF module. When I run the program manually, there are no issues. However, when I try to automate the entire process with AWS Lambda, the logs show that the python program execution stops (without an error) after the first call to the fpdf.output('path/to/file.pdf','F'). No statements after this one are executed.

Can someone help me out with this?

Thanks.

rahuldalal99 avatar Jul 05 '23 22:07 rahuldalal99

Hi @rahuldalal99

Note that PyFPDF is not maintained anymore. See #207

fpdf2 is its successor: https://pypi.org/project/fpdf2/ I am its maintainer. We have some documentation on using fpdf2 in AWS lambdas: https://pyfpdf.github.io/fpdf2/UsageInWebAPI.html#aws-lambda

Lucas-C avatar Jul 06 '23 09:07 Lucas-C