public static function get($entity) { $pdf = new self(); $pdf->setEntity($entity); $pdf->_init(); return $pdf->Output('', 'S'); }
public static function get($entity) { $pdf = new self(); $pdf->setEntity($entity[0]); $pdf->addPage(); $pdf->_init(); $pdf->_header(); $pdf->_content(); return $pdf->Output('', 'S'); }