generate();
return $stream;
}
public function end($stream, $datas, $options){
$margin = isset($options['options']['margin']) ? $options['options']['margin'] : array();
$format = isset($options['options']['format']) ? $options['options']['format'] : 'A4';
$orientation = isset($options['options']['orientation']) ? $options['options']['orientation'] : 'Portrait';
$pdf = new Pdf($stream,$margin,$format,$orientation);
return $pdf->generate();
}
}
?>