From 1f01266cf78fb3cb61ffb87882ae98693116cb27 Mon Sep 17 00:00:00 2001 From: Gustavo Kennedy Renkel <98914036+gustavokennedy@users.noreply.github.com> Date: Mon, 11 Nov 2024 15:36:33 -0300 Subject: [PATCH] =?UTF-8?q?Inclus=C3=A3o=20de=20t=C3=ADtulos=20no=20PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue 602 --- src/NFe/Danfe.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/NFe/Danfe.php b/src/NFe/Danfe.php index 77efa4d6..3fb53806 100644 --- a/src/NFe/Danfe.php +++ b/src/NFe/Danfe.php @@ -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) @@ -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)) {