pyfpdf
pyfpdf copied to clipboard
Python FPDF.output() glitches with AWS Lambda
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.
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