function __construct($cr = '', $tim = '', $img = '', $orientation = 'P', $unit = 'pt', $format = 'Letter', $margin = 40) { Fpdf::FPDF($orientation, $unit, $format); Fpdf::SetTopMargin($margin); Fpdf::SetLeftMargin($margin); Fpdf::SetRightMargin($margin); Fpdf::SetAutoPageBreak(true, $margin); $this->creator = $cr; $this->time = $tim; $this->logo = $img; }