rolandsblujus Posted November 27, 2016 Share Posted November 27, 2016 Can you help me? I am trying to edit invoice.tpl file. Everything is fine, but formating is not working as expected in PDF. For example, ir P.S. 1.7 version a had styling like this: <span style="font-weight: bold">Some content</span>. In 1.7 it is working fine, bet in PS 1.6 this is not working for me. No bold or other formating is working in 1.6. I have tryed to clear the cache but no luck. Coukd you please give me an advice? Link to comment Share on other sites More sharing options...
tuk66 Posted November 28, 2016 Share Posted November 28, 2016 PS 1.7 uses newer version of teh TCPDF library. I'm not sure if you can simply copy it, but try it. From /vendor/tecnickcom/tcpdf to /tools/tcpdf. Link to comment Share on other sites More sharing options...
rolandsblujus Posted November 28, 2016 Author Share Posted November 28, 2016 PS 1.7 uses newer version of teh TCPDF library. I'm not sure if you can simply copy it, but try it. From /vendor/tecnickcom/tcpdf to /tools/tcpdf. Thank you for the response. I tryed to copy TCPDF library from PS 1.7. When creating PDF it gives me an error 500, so this is not the solution. Link to comment Share on other sites More sharing options...
coMegaWebMaster Posted February 15, 2018 Share Posted February 15, 2018 In: /classes/pdf/PDFGenerator.php Goto: public $font_by_lang = array( Change your language to 'helvetica' Like 'en' => 'helvetica', Then your formatting should work without doing much other kind of work. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now