From 6b7f513912dd76034f02e752db4d18747b6a157c Mon Sep 17 00:00:00 2001 From: Cleiton Perin Date: Tue, 30 Jan 2024 09:13:57 -0300 Subject: [PATCH] Ajustes no posicionamento das tarjas da Mdfe. --- src/MDFe/Damdfe.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/MDFe/Damdfe.php b/src/MDFe/Damdfe.php index aa01b913..3e5a5050 100644 --- a/src/MDFe/Damdfe.php +++ b/src/MDFe/Damdfe.php @@ -384,10 +384,10 @@ private function headerMDFePaisagem($x, $y, $pag) $n = count($resp['message']); $alttot = $n * 15; $x = 10; - $y = $this->hPrint / 2 - $alttot / 2; + $y = $this->hPrint / 2 - ($alttot - 80) / 2; $h = 15; $w = $maxW - (2 * $x); - $this->pdf->settextcolor(90, 90, 90); + $this->pdf->settextcolor(200, 200, 200); foreach ($resp['message'] as $msg) { $aFont = ['font' => $this->fontePadrao, 'size' => 48, 'style' => 'B']; $this->pdf->textBox($x, $y, $w, $h, $msg, $aFont, 'C', 'C', 0, ''); @@ -407,8 +407,8 @@ 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); } + $this->pdf->settextcolor(0, 0, 0); } return $oldY + 8; } @@ -599,10 +599,10 @@ private function headerMDFeRetrato($x, $y, $pag) $n = count($resp['message']); $alttot = $n * 15; $x = 10; - $y = $this->hPrint / 2 - $alttot / 2; + $y = $this->hPrint / 2 - ($alttot + 45) / 2; $h = 15; $w = $maxW - (2 * $x); - $this->pdf->settextcolor(90, 90, 90); + $this->pdf->settextcolor(200, 200, 200); foreach ($resp['message'] as $msg) { $aFont = ['font' => $this->fontePadrao, 'size' => 48, 'style' => 'B']; $this->pdf->textBox($x, $y, $w, $h, $msg, $aFont, 'C', 'C', 0, ''); @@ -622,8 +622,8 @@ private function headerMDFeRetrato($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); } + $this->pdf->settextcolor(0, 0, 0); } return $oldY + 8; }