//change from $this->FPDF($orientation,$unit,$format) //to $this->__construct($orientation,$unit,$format);