New class for FPDF to create complex tables using arrays

Hello,

on the internet page http://www.vonderborn.com/erweiterte-tabellen-mit-fpdf.php

there is a nice code for FPDF to create komplex table structures in PDF using an array.
This code needs to extend the FDPF. The code begins with …

class MYPDF extends FPDF
{
// Margins
var $left = 10;

If I put this code in the beginning of ->Layout PDF->code to implement this class I get the error message

Class declarations may not be nested in C:Program Files (x86)NetMakev5wwwrootscriptcaseappSVS_Praxis est est_grid.class.php on line 784

So, where must I put this code to get it run ??

Best regards
Uwe Pfeiffer

Re: New class for FPDF to create complex tables using arrays

You write the call to funtions this mode:

$this->Pdf->SetFillColor(235);

and run fine.

Carlos