Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inclusão de títulos no PDF #625

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading