Html2pdf very slow with a lot of pages for one pdf

4.9k views Asked by At

I'm trying to create pdf from html using html2pdf (last version) in PHP. I have a lot of pages for one pdf & the creation of file is too slow.

For example, 6 minutes for only 26 pages & the pdf contains a small image for each page.

I can't split HTML because in html2pdf you can use only the function writeHtml.

  • Is there someone that has the same problem?

  • Has someone create a pdf with a lot of pages?

  • Is a problem of class?

  • Do you know a class to generate pdf from html that hasn't problem with a big number of pages?

1

There are 1 answers

3
Sankar Ganesh On BEST ANSWER

http://www.mpdf1.com/mpdf/index.php

reference the above link. very simple create html to pdf.


UPDATE
New link: https://mpdf.github.io/