Difference between #217 and #218 of
Yii v2 snippet guide

Revision #218 has been created by rackycz on Aug 5, 2020, 10:49:00 AM with the memo:

FPDF
« previous (#217) next (#219) »

Changes

Title unchanged

Yii v2 snippet guide

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
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.
 
7 0
4 followers
Viewed: 274 936 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history