Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 872 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 872 Bytes

tcpdf-easytable

This is a tcpdf compatible easy-table.

Original code is from fpdf-easytable

Usage

Usage are almost the same, except that you need to modify the fonts file in font folder. simply change the $cw keys from real characters to ascii code or unicode instead.

original your-font.php is like

// some config

$cw = array(chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278, ...);

modified:

// some config

$cw = array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278, ...);

If you want to use other font file of ttf format as your font, simply use

TCPDF_FONTS::addTTFfont('path/to/your/ttf/file', 'TrueTypeUnicode');

then you can get corresponding your-font.php. see details at TCPDF_FONT DOC