require('fpdf.php');
$pdf=new FPDF('P','mm','letter'); // instantiate with units=mm, paper size=letter (use 'A4' if non-US)
$pdf->AddPage();
// ... your content/loop/whatever here ...
if($pdf->GetY()>200)$pdf->AddPage(); // add page if Y>20cm from top left corner
$pdf->Output();
|