Code type module improvements:
[openemr.git] / library / html2pdf / _fpdf / install.txt
bloba14099543b238da806887bd8e3a68584778a9f98
1 The FPDF library is made up of the following elements:
3 - the main file, fpdf.php, which contains the class
4 - the font metric files (located in the font directory of this archive)
6 The metric files are necessary as soon as you want to output some text in a document.
7 They can be accessed from three different locations:
9 - the directory defined by the FPDF_FONTPATH constant (if this constant is defined)
10 - the font directory located in the directory containing fpdf.php (as it is the case in this archive)
11 - the directories accessible through include()
13 Here is an example defining FPDF_FONTPATH (note the mandatory final slash):
15 define('FPDF_FONTPATH','/home/www/font/');
16 require('fpdf.php');
18 If the files are not accessible, the SetFont() method will produce the following error:
20 FPDF error: Could not include font metric file
23 Remarks:
25 - Only the files corresponding to the fonts actually used are necessary
26 - The tutorials provided in this package are ready to be executed