I am using TCPDF\'s writeHtml function for a page that renders properly in the browser. In the output PDF, the fonts are too small. I\'ve tried with setFont, but it doesn\'
The best solution that worked for me was to replace 'px' to 'pt' in html code:
$tidy = str_replace ('px', 'pt', $tidy);
Before on the left side and after replacing on the right: