Welcome Guest, Not a member yet? Register   Sign In
FPDF - Extending the Class
#2

[eluser]xwero[/eluser]
put the extended class in a separate file in the same directory of the fpdf file. if the directory is application/libraries you can do
Code:
$this->load->library('pdf');
$this->pdf->AliasNbPages();
$this->pdf->AddPage();
$this->pdf->SetFont('Times','',12);
for($i=1;$i<=40;$i++)
    $this->pdf->Cell(0,10,'Printing line number '.$i,0,1);
$this->pdf->Output();
i recently added a modified fpdf file maybe it could be as useful to you as it was for me.


Messages In This Thread
FPDF - Extending the Class - by El Forum - 06-19-2008, 02:37 AM
FPDF - Extending the Class - by El Forum - 06-19-2008, 04:28 AM
FPDF - Extending the Class - by El Forum - 06-19-2008, 10:20 AM
FPDF - Extending the Class - by El Forum - 06-19-2008, 11:09 AM
FPDF - Extending the Class - by El Forum - 06-19-2008, 12:09 PM
FPDF - Extending the Class - by El Forum - 06-19-2008, 12:24 PM
FPDF - Extending the Class - by El Forum - 06-19-2008, 02:30 PM
FPDF - Extending the Class - by El Forum - 06-20-2008, 01:24 AM
FPDF - Extending the Class - by El Forum - 09-15-2008, 04:24 PM
FPDF - Extending the Class - by El Forum - 09-15-2008, 05:44 PM
FPDF - Extending the Class - by El Forum - 09-15-2008, 06:13 PM
FPDF - Extending the Class - by El Forum - 09-15-2008, 06:44 PM
FPDF - Extending the Class - by El Forum - 10-17-2008, 12:02 PM
FPDF - Extending the Class - by El Forum - 10-19-2008, 05:39 PM
FPDF - Extending the Class - by El Forum - 07-11-2009, 02:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB