Iceman Posted July 9, 2008 Share Posted July 9, 2008 There is bug with creating a PDF invoice where, if an & exists in say the companyname field, it will not be displayed on the pdf invoice, but instead & Cheers, Paul Link to comment Share on other sites More sharing options...
dexus Posted July 9, 2008 Share Posted July 9, 2008 Yes, that is also happening with other special chars... Find this row in file include/pdfconfig.php: $pdf->Cell(0,4,$clientsdetails["companyname"],0,1,'L'); and replace it with: $pdf->Cell(0,4,html_entity_decode($clientsdetails["companyname"]),0,1,'L'); Link to comment Share on other sites More sharing options...
Iceman Posted July 9, 2008 Author Share Posted July 9, 2008 Cool, yes that would fix it. Although it would make sense if all fields loaded into the PDF section be passed though html_entity_decode before hand I suppose. Cheers, Paul Link to comment Share on other sites More sharing options...
othellotech Posted July 9, 2008 Share Posted July 9, 2008 we've had to do that to city for the same issue - agree it would be handy if WHMCS did it automagically. Link to comment Share on other sites More sharing options...
Recommended Posts