PMCORE-3830 Header and Footer Logo add spaces in the Output document.

This commit is contained in:
Roly Gutierrez
2022-05-13 12:16:30 -04:00
parent cd725d237e
commit db242fdab2

View File

@@ -110,7 +110,7 @@ class TCPDFHeaderFooter extends TCPDF
$y = $struct->getLogoPositionY() + $margins['top'];
$width = $struct->getLogoWidth();
$this->Image($path, $x, $y, $width, 0, $extension, '', '', false, 300, '', false, false, 0, false, false, false);
$newImageHeight = ($width * $imageSize[0] / $imageSize[1]);
$newImageHeight = ($width * $imageSize[1] / $imageSize[0]);
$heights[] = $margins['top'] + $newImageHeight;
}