ravotech Posted October 14, 2009 Share Posted October 14, 2009 When I started with whmcs, I once used a script to convert verdana to a tcpdf usable font, and used it. I also customized the invoice, to make it look more professional. Yesterday, I updated my whmcs install to 4.1.1, it all went very smooth, except PDF invoices. The invoice is all mixed up, and the verdana font stopped working. My question now is, can someone customize the invoice, if I give him the old code + sample pdf? If you can, please send me your offer! Thank you! 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 15, 2009 Share Posted October 15, 2009 Open the file and do a search and replace search for "verdana" and replace it with "helvetica" 0 Quote Link to comment Share on other sites More sharing options...
ravotech Posted October 15, 2009 Author Share Posted October 15, 2009 I hate Arial and the converted Verdana that worked fine on my previous install is no longer working on 4.1.1 I followed yor advice, and simply copied the old source, pasted it, and updated it partially to the 4.1.1, but encountered some problems. For example, The top margin is quite alot, at least 5 lines, while it should be like 2. Any idea how to correct that? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 15, 2009 Share Posted October 15, 2009 I have attached a link to a small utility to be able to create a new pdf font. Take a look at it and be sure to read the readme file. http://tshosting.com.au/tmp/utils.zip Note: I will remove this file after you have downloaded it. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 15, 2009 Share Posted October 15, 2009 Also this link may help http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_fonts 0 Quote Link to comment Share on other sites More sharing options...
ravotech Posted October 17, 2009 Author Share Posted October 17, 2009 Also this link may helphttp://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_fonts Many thanks Sparky! You are the man Unfortunately, I tried converting verdana (and other fonts), but they are still not working. The old verdana isn't working either. I can send you the files if you want, just pm me your mail address. Invoice is now working fine (except the verdana font, I hate arial ). I did notice that the page number is no longer mentioned inside the PDF. This seems to be removed since the new version? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.