função para gerar o boleto
public gerarBoleto ( string $dest = self::OUTPUT_STANDARD, null $save_path = null, boolean $print = false ) : string | ||
$dest | string | tipo de destino const BOLETOPDF_DEST_STANDARD | BOLETOPDF_DEST_DOWNLOAD | BOLETOPDF_DEST_SAVE | BOLETOPDF_DEST_STRING |
$save_path | null | |
boolean | se vai solicitar impressão | |
return | string |
/** * 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); }