Suggest python library for rendering html to pdf files

24 views Asked by At

I am generating a pdf from html template using jinja rendering. Please suggest a library that can help me render html to PDF. Current issue : html file size is 400 KB but after rendering pdf file zise is > 20 MB Also some library generates pdf of same size of html file that is 400 KB but after rendering the format is not as expected.

Tried using xhtml2pdf pisa library, pdf size is unchanged but formatting is not as expected

0

There are 0 answers