Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('fpdf.php');
- class PDF extends FPDF{
- function ___construct(){
- parent::FPDF();
- }
- public function build(){
- $pdf=new FPDF('P','mm','A4');
- $pdf->AddPage();
- $pdf->SetFont('helvetica','B',16);
- $pdf->Write('20','Hello World');
- $pdf->Ln();
- $pdf->Write('0','Ini project mencetak pdf dengan FPDF');
- $pdf->Output();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement