FPDF Class
phpWritePDF.php
01.
<html>
02.
<head>
03.
<title>ThaiCreate.Com PHP PDF</title>
04.
</head>
05.
<body>
06.
<?php
07.
require
(
'fpdf.php'
);
08.
09.
$pdf
=
new
FPDF();
10.
$pdf
->AddPage();
11.
$pdf
->SetFont(
'Times'
,
'B'
,16);
12.
$pdf
->Cell(0,10,
'Welcome to www.ThaiCreate.Com'
,0,1);
13.
$pdf
->Cell(0,20,
'Version 2009'
,0,1,
"C"
);
14.
$pdf
->Output(
"MyPDF/MyPDF.pdf"
,
"F"
);
15.
?>
16.
PDF Created Click <a href=
"MyPDF/MyPDF.pdf"
>here</a> to Download
17.
</body>
18.
</html>
Reference : http://www.thaicreate.com/php/php-export-pdf.html
No comments:
Post a Comment