diff --git a/doc/tfpdf/HelloWorld.txt b/doc/tfpdf/HelloWorld.txt new file mode 100644 index 000000000..0408a3287 --- /dev/null +++ b/doc/tfpdf/HelloWorld.txt @@ -0,0 +1,6 @@ +English: Hello World +Greek: Γειά σου κόσμος +Polish: Witaj świecie +Portuguese: Olá mundo +Russian: Здравствулте мир +Vietnamese: Xin chào thế giới diff --git a/doc/tfpdf/README.txt b/doc/tfpdf/README.txt new file mode 100644 index 000000000..212128b02 --- /dev/null +++ b/doc/tfpdf/README.txt @@ -0,0 +1,15 @@ +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. + diff --git a/doc/tfpdf/ex.pdf b/doc/tfpdf/ex.pdf new file mode 100644 index 000000000..f204693d7 Binary files /dev/null and b/doc/tfpdf/ex.pdf differ diff --git a/doc/tfpdf/ex.php b/doc/tfpdf/ex.php new file mode 100644 index 000000000..a9cf3012a --- /dev/null +++ b/doc/tfpdf/ex.php @@ -0,0 +1,26 @@ +AddPage(); + +// Add a Unicode font (uses UTF-8) +$pdf->AddFont('DejaVu','','DejaVuSansCondensed.ttf',true); +$pdf->SetFont('DejaVu','',14); + +// Load a UTF-8 string from a file and print it +$txt = file_get_contents('HelloWorld.txt'); +$pdf->Write(8,$txt); + +// Select a standard font (uses windows-1252) +$pdf->SetFont('Arial','',14); +$pdf->Ln(10); +$pdf->Write(5,'The file size of this PDF is only 17 KB.'); + +$pdf->Output(); +?> diff --git a/doc/tfpdf/info.htm b/doc/tfpdf/info.htm new file mode 100644 index 000000000..962ee07e3 --- /dev/null +++ b/doc/tfpdf/info.htm @@ -0,0 +1,32 @@ + + +
+ +AddFont() and true as fourth parameter. The font may be located
+either in the font/unifont directory or directly in the system font folder (in case the
+_SYSTEM_TTFONTS constant is defined).
+The package ships with the DejaVu
+font family.En purgeant la table, vous effacez toutes les données des fichiers CSV que vous avez importés, +cela n\' affecte pas les opérations déjà transfèrées dans la comptabilité
'; + echo ''; + echo '