Skip to content

Commit

Permalink
Inclusão de títulos no PDF
Browse files Browse the repository at this point in the history
Issue 602
  • Loading branch information
gustavokennedy authored Nov 11, 2024
1 parent 1c8f245 commit 1f01266
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/NFe/Danfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,13 @@ class Danfe extends DaCommon
*/
protected $obsshow = true;

protected $title = '';

public function setTitle($title)
{
$this->title = $title;
}

/**
* __construct
* @param string $xml Conteúdo XML da NF-e (com ou sem a tag nfeProc)
Expand Down Expand Up @@ -491,6 +498,7 @@ protected function monta(
$logo = ''
) {
$this->pdf = '';
$this->pdf->setTitle($this->title);
$this->logomarca = $this->adjustImage($logo);
//se a orientação estiver em branco utilizar o padrão estabelecido na NF
if (empty($this->orientacao)) {
Expand Down

0 comments on commit 1f01266

Please sign in to comment.