Improvement in the pdf generation with TCPDF