<?php
require('fpdf/mbfpdf.php');

$pdf=new MBFPDF('P', 'mm', 'A4');
$pdf->AddMBFont(GOTHIC ,'SJIS');
$pdf->AddPage();
$pdf->SetFont(GOTHIC,'',20);

$pdf->Write(10,'長方形の描画');
$pdf->Rect(10.0, 10.0, 50.0, 30.0);
$pdf->Rect(30.0, 30.0, 50.0, 30.0, 'F');
$pdf->SetFillColor(255, 0, 128);
$pdf->Rect(50.0, 50.0, 50.0, 30.0, 'DF');

$pdf->Output();
?>