Yii v2 snippet guide

Comparing #220 with #221

Revision #221 was created by rackycz rackycz on Aug 5, 2020, 3:53:50 PM.

FPDF

Content

[...]
A discussion is available [here](https://stackoverflow.com/questions/6334134/fpdf-utf-8-encoding-how-to).

**PDF - UTF, all chars**
---

When you need non-English characters, [tFPDF](http://www.fpdf.org/en/script/script92.php) should be used.
It is the same as FPDF so FPDF documentation and manual can be used. It only modifies character-handlig. 
 
 
Just download it and then use it as a helper - I described how this is done [above](https://www.yiiframework.com/wiki/2552/yii-v2-snippet-guide#creating-your-new-helper-class).

Summary:
- Download tFPDF and unpack it.
- use file **tfpdf.php** and folder **font** .. it contains file **ttfonts.php** !!
- Into both mentioned php files add the namespace you are using for your helpers.
[...]