Skip to content

Commit

Permalink
Bug fix - null param
Browse files Browse the repository at this point in the history
  • Loading branch information
paseto committed Jan 17, 2024
1 parent e2727f7 commit 83cf3ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MDFe/Damdfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ private function headerMDFePaisagem($x, $y, $pag)
$texto = "SEM VALOR FISCAL";
$aFont = ['font' => $this->fontePadrao, 'size' => 48, 'style' => 'B'];
$this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
$this->pdf->settextcolor(0, 0, 0);
}
}
return $oldY + 8;
Expand Down Expand Up @@ -654,6 +653,7 @@ private function bodyMDFe($x, $y)
$maxW = $this->wPrint * 0.9;
}
$this->pdf->setFillColor(188, 224, 246);
$this->pdf->settextcolor(0, 0, 0);
$x2 = ($maxW / 6);
$x1 = $x2;
$this->pdf->textBox($x, $y, $x2 - 22, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
Expand Down Expand Up @@ -857,7 +857,6 @@ private function bodyMDFe($x, $y)
// chave de acesso
$this->pdf->textBox($x + $maxW / 2, $y + 4, $maxW / 2, 17, '', $this->baseFont, 'T', 'L', 0);
$aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => 'B');
$tsHora = $this->toTimestamp($this->dhEvento);
$texto = 'Chave de Acesso';
$this->pdf->textBox($x + $maxW / 2, $y + 4, $maxW / 2, 6, $texto, $aFont, 'T', 'L', 0, '');
$aFont = array('font' => $this->fontePadrao, 'size' => 10, 'style' => '');
Expand Down

0 comments on commit 83cf3ab

Please sign in to comment.