Advertisement
SuperBag

index.php

Jul 25th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2.     require('fpdf.php');
  3.     class PDF extends FPDF{
  4.         function ___construct(){
  5.             parent::FPDF();
  6.         }
  7.         public function build(){
  8.             $pdf=new FPDF('P','mm','A4');
  9.             $pdf->AddPage();
  10.             $pdf->SetFont('helvetica','B',16);
  11.             $pdf->Write('20','Hello World');
  12.             $pdf->Ln();
  13.             $pdf->Write('0','Ini project mencetak pdf dengan FPDF');
  14.             $pdf->Output();
  15.         }
  16.    
  17.     }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement