HTML generation, allowing TCPDF to parse this HTML code and rewrite it in a Postscript instruction, and then write this Postscript, of course, will be slower than directly writing Postscript to begin with. Use regular Ln , Cell , Write , etc. Methods for directly creating a PDF file if you want maximum performance. Yes, it's a bit more complicated than writing HTML, but that's because they are different. And the slow part is the translation between these different things.
source share