install.txt 983 B

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