westdc-zf1/include/fpdf/tutorial/tuto7.php

12 lines
259 B
PHP
Raw Permalink Normal View History

2009-03-06 03:20:46 +00:00
<?php
2011-11-03 02:25:38 +00:00
define('FPDF_FONTPATH','.');
2009-03-06 03:20:46 +00:00
require('../fpdf.php');
2011-11-03 02:25:38 +00:00
$pdf = new FPDF();
2009-03-06 03:20:46 +00:00
$pdf->AddFont('Calligrapher','','calligra.php');
$pdf->AddPage();
$pdf->SetFont('Calligrapher','',35);
$pdf->Cell(0,10,'Enjoy new fonts with FPDF!');
$pdf->Output();
?>