Skip to content

Commit

Permalink
Ajustes no posicionamento das tarjas da Mdfe.
Browse files Browse the repository at this point in the history
  • Loading branch information
icompsoftcleiton committed Jan 30, 2024
1 parent a7b96de commit 6b7f513
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/MDFe/Damdfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
Expand All @@ -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;
}
Expand Down Expand Up @@ -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, '');
Expand All @@ -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;
}
Expand Down

0 comments on commit 6b7f513

Please sign in to comment.