/** * Render PDF * * @param bool $print * * @return string * @throws \Exception */ public function renderPDF($print = false) { $pdf = new Pdf(); $pdf->addBoleto($this); return $pdf->gerarBoleto('S', null, $print); }
public function render() { if (empty($this->getLinha())) { $this->processar(); } $pdf = new Pdf(); $pdf->addBoleto($this); return $pdf->gerarBoleto($pdf::OUTPUT_STANDARD, false); }