1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/doc/tfpdf
2015-09-27 00:54:25 +02:00
..
ex.pdf [mod] move files in a subdir 2015-09-27 00:54:25 +02:00
ex.php [mod] move files in a subdir 2015-09-27 00:54:25 +02:00
HelloWorld.txt [mod] move files in a subdir 2015-09-27 00:54:25 +02:00
info.htm [mod] move files in a subdir 2015-09-27 00:54:25 +02:00
README.txt [mod] move files in a subdir 2015-09-27 00:54:25 +02:00

tFPDF accepts UTF-8 encoded text. It embeds font subsets allowing small PDF files.

It requires a folder 'unifont' as a subfolder of the 'font' folder.

You should make the 'unifont' folder writeable (CHMOD 755 or 644). Although this
is not essential, it allows caching of the font metrics the first time a font is used,
making subsequent uses much faster.

All tFPDF requires is a .ttf TrueType font file. The file should be placed in the
'unifont' directory. Optionally, you can also define the path to your system fonts e.g. 'C:\Windows\Font'
(see the example ex.php file) and reference TrueType fonts in this directory.

Pass a fourth parameter as true when calling AddFont(), and use utf-8 encoded text 
when using Write() etc.