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,
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Reporting → 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,
You have to install dejavu fonts from our Downlad page.
Janusz
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,
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
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
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
Hi, I had this same problem and installed dejavu font. But although now it does print out the PDF reports I get strange characters:
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.
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 !!
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
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 !
Did you change the include instruction in class.pdf.inc?
Joe
No, which include instruction?
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
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');
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
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;
If you are using utf8, you shoud replace this font only (isunicode or something like that), not the es_ES one.
/Joe
I'm sorry but I don't have enough PHP knowledge to understand what I have to change or install :-(
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
FrontAccounting forum → Reporting → what does "TCPDF" mean?
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.