Skip to content

Commit

Permalink
Merge pull request #58 from sdespont/patch-1
Browse files Browse the repository at this point in the history
TcPdfOutput : Fix cell height ratio
  • Loading branch information
sprain authored Jul 1, 2020
2 parents 5eddf0e + 46f5c3d commit 69f9324
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PaymentPart/Output/TcPdfOutput/TcPdfOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public function __construct(

public function getPaymentPart(): void
{
$retainCellHeightRatio = $this->tcPdf->getCellHeightRatio();

$this->tcPdf->SetAutoPageBreak(false);

$this->addSeparatorContentIfNotPrintable();
Expand All @@ -85,6 +87,8 @@ public function getPaymentPart(): void
$this->addCurrencyContent();
$this->addAmountContent();
$this->addFurtherInformationContent();

$this->tcPdf->setCellHeightRatio($retainCellHeightRatio);
}

private function addSwissQrCodeImage(): void
Expand Down

0 comments on commit 69f9324

Please sign in to comment.