Topic: what does "TCPDF" mean?

I try to print report as PDF but I got "TCPDF error: Could not include font definition file: dejavu.php"

Please let me konw how to fix it.

thanks,

Re: what does "TCPDF" mean?

You have to install dejavu fonts from our Downlad page.
Janusz

Re: what does "TCPDF" mean?

I've downloaded it and installed - I could open pdf but font my country is ????

it can be shown only English lang. Any suggession?

thanks,

Re: what does "TCPDF" mean?

Well, I don't know special requirements for your region, probably none of the fonts currently available on our site is suitable But if you want to have reports displayed in english regardless of user interface currently set, add following line in reporting/prn_redirect.php file  just after line containing include($path_to_root."includes/session.inc"):

$_SESSION['language']->set_language('en_GB');

Hope it helps.
Janusz

5 (edited by thhui 06/11/2010 04:34:00 am)

Re: what does "TCPDF" mean?

You must use uft8 encoding for other language other than US-iso.
The language support locale must also exist at your hosting website and
proper font must be installed into the font directory other than dejavu.php

Re: what does "TCPDF" mean?

Hello,
  This issue can be solved using the FrontAccounting Fonts at download link. Please try to downloads the dejavu font at
https://frontaccounting.com/wbt/modules/ … hp?file=57
Follow the step below to deployed into your FrontAccounting.
1) Extract the dejavu.zip
     Files will be extracted as below:
     - dejavu.ctg.z
     - dejavu.php
     - dejavu.z
   
  2) Use the FTP program (Filezilla) to migrate all the 3 files into reporting/fonts folder.
  3) Login to your FrontAccounting and access your PDF report now. It should work now.
  Hope it help.
Cheers,
HananaH

Re: what does "TCPDF" mean?

Hi, I had this same problem and installed dejavu font. But although now it does print out the PDF reports I get strange characters:

Re: what does "TCPDF" mean?

instead of ó, í, ñ.

(I'm using es_ES UTF_8). I've been searching in the forum and wiki, but not been successful. Can anyone help me please?

Forum doesn't let me post the strange characters, probably due to security restrictions.

Re: what does "TCPDF" mean?

Can anybody help me on this? I'm getting strange characters when using ó, í, ñ for PDF reports (for example on invoices). I'm using es_ES UTF_8.

I can't send invoices to my clients because of this, it doesn't look professional. Thanks !!

Re: what does "TCPDF" mean?

You will have to download a utf font from FA download and change a line in /reporting/includes/class.pdf.inc to use this font.

/Joe

Re: what does "TCPDF" mean?

Hi Joe, can't find that download page and I'm not sure what to change... I looked around and found the FreeSans font which seems to be UTF8 compatible, but am getting an error now:

TCPDF error: Could not include font definition file: freesans.php

Thanks !

Re: what does "TCPDF" mean?

Did you change the include instruction in class.pdf.inc?

Joe

Re: what does "TCPDF" mean?

No, which include instruction?

Re: what does "TCPDF" mean?

I am out of office now. About line 90 there are include instructions for various font files. Try to find this, and change so you get the right font file included.

Joe

Re: what does "TCPDF" mean?

Hi Joe, only includes I can find are on line 61 & 62:

include_once (dirname(__FILE__).'/tcpdf.php');
include_once (dirname(__FILE__).'/fpdi/fpdi.php');

Re: what does "TCPDF" mean?

Look around line 154. Here are the font includes. Select your font here for the appropriate environment.
This font should be copied into /reporting/fonts .

Joe

Re: what does "TCPDF" mean?

I did this and it isn't working:

switch ($this->l['a_meta_language'])
    {
        case "ar_EG" :     $fontname = "ae_tholoth";     break;
        case "zh_CN" :     $fontname = "gbsn00lp";     break;
        case "zh_TW" :     $fontname = "chinese_traditional_cid0";     break;

        >> case "es_ES" :     $fontname = "freesans";     break;  <<

        default :          $fontname = "dejavu";         break;

Re: what does "TCPDF" mean?

If you are using utf8, you shoud replace this font only (isunicode or something like that), not the es_ES one.

/Joe

Re: what does "TCPDF" mean?

I'm sorry but I don't have enough PHP knowledge to understand what I have to change or install :-(

Re: what does "TCPDF" mean?

mhananah wrote:

Hello,
  This issue can be solved using the FrontAccounting Fonts at download link. Please try to downloads the dejavu font at
https://frontaccounting.com/wbt/modules/ … hp?file=57
Follow the step below to deployed into your FrontAccounting.
1) Extract the dejavu.zip
     Files will be extracted as below:
     - dejavu.ctg.z
     - dejavu.php
     - dejavu.z
   
  2) Use the FTP program (Filezilla) to migrate all the 3 files into reporting/fonts folder.
  3) Login to your FrontAccounting and access your PDF report now. It should work now.
  Hope it help.
Cheers,
HananaH


In Release 2.4.2

I found the same problem and applied the solution and managed to generate a pdf file but after the download and run the file shows me this message

http://prntscr.com/gy5v33