I am using WeasyPrint in Django to generate a PDF. However, when processing around 11,000 records, it consumes all available resources allocated to the Kubernetes pod. As a result, the pod restarts, and I never receive the generated PDF via email. Are there: Any lightweight PDF libraries that can handle generating PDFs for thousands of records more efficiently? Any optimization techniques in WeasyPrint (or in general) to reduce resource usage and generate the PDF successfully? Continue reading...