Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Invalid ??????? Characters in Emailed PDF Invoices
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Invalid ??????? Characters in Emailed PDF Invoices

Invalid ??????? Characters in Emailed PDF Invoices 11 years, 11 months ago #35832

Hi there!

I have a text characters problem with PDF's that are being sent by email as an attachment. My eshop language is Greek. When I look at the PDF invoice files at the backend, the text characters are ok. But, when an email is sent with the attached PDF invoice file, all Greek characters are substituted by the ? character.

Note that I have uploaded "arialunicodems.ttf" file and selected it in
Global Configuration --> Page Appearance --> PDF Font
.

Please help me on the above issue.

Thank you,
Nikos

PS: Note that I had a similar problem when one was generating PDFs from the product details frontend page and I fixed it by changing the fonts in the
libraries\joomla\document\pdf\pdf.php
file to "arialunicodems". In your setup however, I cannot find a respective file.
The topic has been locked.

Re: Invalid ??????? Characters in Emailed PDF Invoices 11 years, 11 months ago #35914

  • pama
  • OFFLINE
  • Posts: 489
Hello. If from the backend greek characters are ok and on the invoice (which is sent usually from frontnend by plugin or cron task) not, it can be caused because some extenstion usually loads it's own or Joomla native TCPDF class first.

To debug this:
- be sure you don't have PDF cached (no green background on button) or turn off "Cache PDF" in "Technical Configuration".
- send invoice by clicking e-mail icon from backend. Are greek characters ok now?

From the other side:
- Turn on debug mode in "Technical Config"
- Login as shopper on frontend and try to open PDF invoice from Orders list (assuming you have VM front-end integration)
- Do you see warning about "Different version of TCPDF loaded"?

If answer to questions are "yes", you need to copy fonts (JOOMLA_ROOT/administrator/components/com_vminvoice/libraries/tcpdf/fonts) also to directory where actual TCPDF stores fonts. If it is Joomla! native TCPDF, it is JOOMLA_ROOT/libraries/tcpdf/fonts.
ARTIO Support Team
Last Edit: 11 years, 11 months ago by pama.
The topic has been locked.

Re: Invalid ??????? Characters in Emailed PDF Invoices 11 years, 11 months ago #35949

Thank you for your support.

I'll follow your advices and let you know if I still have some problems.

Regards
The topic has been locked.

Re: Invalid ??????? Characters in Emailed PDF Invoices 11 years, 10 months ago #36575

For anyone who has this problem, the solution is as follows:

In file joomla_folder\components\com_virtuemart\controller\invoice.php around lines 151, 152 change the font

$pdf->setHeaderFont(Array('dejavusans', '', 8 ));
$pdf->setFooterFont(Array('dejavusans', '', 10 ));

also around line 179, change also the font

$pdf->SetFont('dejavusans', '', 8, '', true);

The whole discussion can be found here

Thanks
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný