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

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

$x = $pdf->GetX();

$pdf->Cell(60, 30, '境界線は上と左、横幅指定', 'LT');
$pdf->SetXY($x, 60);
$pdf->Cell(0, 20, '境界線を上下左右、横幅は右端まで', 1);

$pdf->Output();
?>