html2pdf
html2pdf copied to clipboard
Html2Pdf is really slow
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 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"
@Frenezy90 can you try it with #456 ?
@Frenezy90 You can try doctron,which supply living demo. Doctron is a Docker-powered,serverless,sample,fast,high quality document convert tool.Supply html convert to pdf(html2pdf), html convert to image(html2image like jpeg,png),which using chrome(Chromium) kernel, add watermarks to pdf, convert pdf to images etc.