<?php require('formularze/fpdf.php'); class a extends FPDF { function szz( $string ){ $this->AddPage(); $this->setxy( 10,10 ); $this->cell( 160, 5, $string, 0,0,"L" ); } } $newPage = new a(); $pdf = new FPDF(); $pdf->open(); $pdf->AddPage(); $pdf->SetAutoPageBreak('on'); $pdf->AddFont('timespl','','timespl.php'); $pdf->SetFont('timespl','',9); $pdf->setxy( 10, 10 ); $pdf->Cell( 160, 5, 'a', 0,0,"L"); $newPage->szz( 'b' ); $pdf->output(); ?>
niestety w tym przypadku moje rozszerzenie nie działa. dlaczego
