html2pdf icon indicating copy to clipboard operation
html2pdf copied to clipboard

Html2Pdf is really slow

Open Frenezy90 opened this issue 4 years ago • 3 comments

Hello, First of all thank you for this library which is really exceptional, except on one level, the speed of generation of PDF

I first thought it came from my code, then I got there seriously to find a solution After several tries: The MPDF library (which uses html2pdf) generates the same file with (at least) half the time (but does not meet all my needs unlike your library) The html2pdf.js library to test the pure display of my page (find out if it came from my database queries), the display is instantaneous

I have no idea where my problem with html2pdf is coming from, so I think it would be necessary to create a good practice page to help improve performance

Are future updates focused on performance topical? Or do I have to work with librairies that are less suited to my needs but faster?

NB : I use a lot of table in my PDF (but that doesn't explain how mpdf can generate them in half the time)

Frenezy90 avatar Apr 24 '20 15:04 Frenezy90

@Frenezy90 maybe you can use https://support.blackfire.io/en/articles/888235-can-i-try-blackfire-for-free and profile the code your implementation take on this lib

persona i use it since ~4 years, for some "basic++" usage and never feel it "slow"

94noni avatar May 18 '20 11:05 94noni

@Frenezy90 can you try it with #456 ?

k00ni avatar Aug 05 '20 08:08 k00ni