PDF Invoice generation multilanguage

More
9 years 10 months ago #81916 by Dima
You might want to know and fix this issue in the future releases:
I noticed that pdf invoice has "?" instead of hebrew letters. Upon farther checking I found that in function formatInvoiceNumber
$pdf->SetFont('times', '', 8); was set, I set it to $pdf->SetFont('dejavusans', '', 8); which is example of tcpdf script. And it works fine now.
Of course I needed to upload additional font files to tcpdf/fonts directory. So bottom line you need some multilanguage font to be in
$pdf->SetFont(); For it to work with all languages.

Thought you might find this helpful..

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 10 months ago #81946 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PDF Invoice generation multilanguage
Thanks Simon. Yes, I know that sometime, the issue happens with some specific language but there is not a proper solution like that

We usually have to fix it for individual customers (via support ticket)

I will try to find sometime to research more about it to see whether we can come up with an offical solution (seems it depends on the languages)

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #83449 by Denis
Replied by Denis on topic PDF Invoice generation multilanguage
Hi, Simon! I had faced a similar problem "?" - pdf invoice has "?" instead of hebrew letters. Can I ask you where you found function formatInvoiceNumber and how you installed additional font files to tcpdf/fonts directory (dejavusans)?

Thanks

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 9 months ago #83472 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PDF Invoice generation multilanguage
Hi Denis

You can submit a support ticket sending us super admin account of your site. I will ask my developer to check and correct it for you

Usually, it will require upload the missing font and modify one line of code in components/com_eventbooking/helper/helper.php

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc