Revision #218 was created by rackycz on Aug 5, 2020, 10:49:00 AM.
FPDF
Content
[...]
Quotes were not important. I didnt even need to [download](https://xdebug.org/download) current version of xdebug, it was already in folder C:\xampp\php\ext.
**PDF - no UTF, only English chars**
---
For creating PDFs can be used [FPDF](http://www.fpdf.org) library. It its extremely simple to make it run. 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). Do not forget to add namespace to the PHP fileFPDF.php.
You will only need **FPDF.php** and folder **font**. Then in your controller just do this:
[...]
Summary:
- Download tFPDF and unpack it.
- use file **tfpdf.php**
- and folder **font** .. it contains file **ttfonts.php** !!
- Into both mentioned php files add yourthe namespace which you are using for your helpers.
- Do other modifications needed to use it as a Helper. Explained above.