gerarBoleto() public method

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
$print boolean se vai solicitar impressão
return string
コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 public function render()
 {
     if (empty($this->getLinha())) {
         $this->processar();
     }
     $pdf = new Pdf();
     $pdf->addBoleto($this);
     return $pdf->gerarBoleto($pdf::OUTPUT_STANDARD, false);
 }