diff --git a/src/PaymentPart/Output/AbstractOutput.php b/src/PaymentPart/Output/AbstractOutput.php index 4a23642f..ca66dc85 100644 --- a/src/PaymentPart/Output/AbstractOutput.php +++ b/src/PaymentPart/Output/AbstractOutput.php @@ -3,6 +3,7 @@ namespace Sprain\SwissQrBill\PaymentPart\Output; use Sprain\SwissQrBill\DataGroup\Element\PaymentReference; +use Sprain\SwissQrBill\PaymentPart\Output\Element\FurtherInformation; use Sprain\SwissQrBill\PaymentPart\Output\Element\Placeholder; use Sprain\SwissQrBill\PaymentPart\Output\Element\Text; use Sprain\SwissQrBill\PaymentPart\Output\Element\Title; @@ -157,7 +158,7 @@ protected function getFurtherInformationElements(): array foreach ($this->qrBill->getAlternativeSchemes() as $alternativeScheme) { $furtherInformationLines[] = $alternativeScheme->getParameter(); } - $furtherInformationElements[] = Text::create(implode("\n", $furtherInformationLines)); + $furtherInformationElements[] = FurtherInformation::create(implode("\n", $furtherInformationLines)); return $furtherInformationElements; } diff --git a/src/PaymentPart/Output/Element/FurtherInformation.php b/src/PaymentPart/Output/Element/FurtherInformation.php new file mode 100644 index 00000000..47b70a2a --- /dev/null +++ b/src/PaymentPart/Output/Element/FurtherInformation.php @@ -0,0 +1,24 @@ +furtherInformation = $furtherInformation; + + return $element; + } + + public function getText(): string + { + return $this->furtherInformation; + } +} diff --git a/src/PaymentPart/Output/FpdfOutput/FpdfOutput.php b/src/PaymentPart/Output/FpdfOutput/FpdfOutput.php index 4da32770..4cb99614 100644 --- a/src/PaymentPart/Output/FpdfOutput/FpdfOutput.php +++ b/src/PaymentPart/Output/FpdfOutput/FpdfOutput.php @@ -7,6 +7,7 @@ use setasign\Fpdi\Fpdi; use Sprain\SwissQrBill\Exception\InvalidFpdfImageFormat; use Sprain\SwissQrBill\PaymentPart\Output\AbstractOutput; +use Sprain\SwissQrBill\PaymentPart\Output\Element\FurtherInformation; use Sprain\SwissQrBill\PaymentPart\Output\Element\OutputElementInterface; use Sprain\SwissQrBill\PaymentPart\Output\Element\Placeholder; use Sprain\SwissQrBill\PaymentPart\Output\Element\Text; @@ -100,7 +101,7 @@ private function addSwissQrCodeImage(): void $yPosQrCode = 209.5 + $this->offsetY; $xPosQrCode = 67 + $this->offsetX; - if ((bool)ini_get('allow_url_fopen')) { + if (ini_get('allow_url_fopen')) { $this->fpdf->Image( $qrCode->getDataUri($this->getQrCodeImageFormat()), $xPosQrCode, @@ -212,11 +213,10 @@ private function addAmountContent(): void private function addFurtherInformationContent(): void { $this->SetXY(self::RIGHT_PART_X, 286); - $this->fpdf->SetFont(self::FONT, '', self::FONT_SIZE_FURTHER_INFORMATION); foreach ($this->getFurtherInformationElements() as $furtherInformationElement) { $this->setX(self::RIGHT_PART_X); - $this->setContentElement($furtherInformationElement, true); + $this->setContentElement($furtherInformationElement, false); } } @@ -234,6 +234,10 @@ private function addSeparatorContentIfNotPrintable(): void private function setContentElement(OutputElementInterface $element, bool $isReceiptPart): void { + if ($element instanceof FurtherInformation) { + $this->setFurtherInformationElement($element); + } + if ($element instanceof Title) { $this->setTitleElement($element, $isReceiptPart); } @@ -250,11 +254,15 @@ private function setContentElement(OutputElementInterface $element, bool $isRece private function setTitleElement(Title $element, bool $isReceiptPart): void { $this->fpdf->SetFont(self::FONT, 'B', $isReceiptPart ? self::FONT_SIZE_TITLE_RECEIPT : self::FONT_SIZE_TITLE_PAYMENT_PART); - $this->fpdf->MultiCell(0, 2.8, iconv( - 'UTF-8', - 'windows-1252', - Translation::get(str_replace("text.", "", $element->getTitle()), $this->language) - )); + $this->fpdf->MultiCell( + 0, + 2.8, + iconv( + 'UTF-8', + 'windows-1252', + Translation::get(str_replace('text.', '', $element->getTitle()), $this->language) + ) + ); $this->fpdf->Ln($this->amountLS); } @@ -264,13 +272,25 @@ private function setTextElement(Text $element, bool $isReceiptPart): void $this->fpdf->MultiCell( $isReceiptPart ? 54 : 0, $isReceiptPart ? 3.3 : 4, - str_replace("text.", "", iconv('UTF-8', 'windows-1252', $element->getText())), + str_replace('text.', '', iconv('UTF-8', 'windows-1252', $element->getText())), self::BORDER, self::ALIGN_LEFT ); $this->fpdf->Ln($isReceiptPart ? self::LINE_SPACING_RECEIPT : self::LINE_SPACING_PAYMENT_PART); } + private function setFurtherInformationElement(FurtherInformation $element): void + { + $this->fpdf->SetFont(self::FONT, '', self::FONT_SIZE_FURTHER_INFORMATION); + $this->fpdf->MultiCell( + 0, + 4, + iconv('UTF-8', 'windows-1252', $element->getText()), + self::BORDER, + self::ALIGN_LEFT + ); + } + private function setPlaceholderElement(Placeholder $element): void { $type = $element->getType(); diff --git a/src/PaymentPart/Output/HtmlOutput/HtmlOutput.php b/src/PaymentPart/Output/HtmlOutput/HtmlOutput.php index 0462b966..73b23e65 100644 --- a/src/PaymentPart/Output/HtmlOutput/HtmlOutput.php +++ b/src/PaymentPart/Output/HtmlOutput/HtmlOutput.php @@ -3,9 +3,11 @@ namespace Sprain\SwissQrBill\PaymentPart\Output\HtmlOutput; use Sprain\SwissQrBill\PaymentPart\Output\AbstractOutput; +use Sprain\SwissQrBill\PaymentPart\Output\Element\FurtherInformation; use Sprain\SwissQrBill\PaymentPart\Output\Element\Placeholder; use Sprain\SwissQrBill\PaymentPart\Output\Element\Text; use Sprain\SwissQrBill\PaymentPart\Output\Element\Title; +use Sprain\SwissQrBill\PaymentPart\Output\HtmlOutput\Template\FurtherInformationElementTemplate; use Sprain\SwissQrBill\PaymentPart\Output\HtmlOutput\Template\PlaceholderElementTemplate; use Sprain\SwissQrBill\PaymentPart\Output\HtmlOutput\Template\PrintableStylesTemplate; use Sprain\SwissQrBill\PaymentPart\Output\HtmlOutput\Template\TextElementTemplate; @@ -133,11 +135,12 @@ private function hideSeparatorContentIfPrintable(string $paymentPart): string return $paymentPart; } - private function getContentElement(Title|Text|Placeholder $element): string + private function getContentElement(FurtherInformation|Title|Text|Placeholder $element): string { # https://github.com/phpstan/phpstan/issues/4451 # @phpstan-ignore-next-line return match (get_class($element)) { + FurtherInformation::class => $this->getFurtherInformationElement($element), Title::class => $this->getTitleElement($element), Text::class => $this->getTextElement($element), Placeholder::class => $this->getPlaceholderElement($element) @@ -160,6 +163,14 @@ private function getTextElement(Text $element): string return $elementString; } + private function getFurtherInformationElement(FurtherInformation $element): string + { + $elementTemplate = FurtherInformationElementTemplate::TEMPLATE; + $elementString = str_replace('{{ text }}', nl2br($element->getText()), $elementTemplate); + + return $elementString; + } + private function getPlaceholderElement(Placeholder $element): string { $elementTemplate = PlaceholderElementTemplate::TEMPLATE; diff --git a/src/PaymentPart/Output/HtmlOutput/Template/FurtherInformationElementTemplate.php b/src/PaymentPart/Output/HtmlOutput/Template/FurtherInformationElementTemplate.php new file mode 100644 index 00000000..d868503a --- /dev/null +++ b/src/PaymentPart/Output/HtmlOutput/Template/FurtherInformationElementTemplate.php @@ -0,0 +1,10 @@ +{{ text }}
+EOT; +} diff --git a/src/PaymentPart/Output/TcPdfOutput/TcPdfOutput.php b/src/PaymentPart/Output/TcPdfOutput/TcPdfOutput.php index f552c2d5..585fa5b4 100644 --- a/src/PaymentPart/Output/TcPdfOutput/TcPdfOutput.php +++ b/src/PaymentPart/Output/TcPdfOutput/TcPdfOutput.php @@ -4,6 +4,7 @@ use setasign\Fpdi\Tcpdf\Fpdi; use Sprain\SwissQrBill\PaymentPart\Output\AbstractOutput; +use Sprain\SwissQrBill\PaymentPart\Output\Element\FurtherInformation; use Sprain\SwissQrBill\PaymentPart\Output\Element\OutputElementInterface; use Sprain\SwissQrBill\PaymentPart\Output\Element\Placeholder; use Sprain\SwissQrBill\PaymentPart\Output\Element\Text; @@ -29,6 +30,7 @@ final class TcPdfOutput extends AbstractOutput implements OutputInterface private const RIGHT_CELL_HEIGHT_RATIO_COMMON = 1.1; private const LEFT_CELL_HEIGHT_RATIO_CURRENCY_AMOUNT = 1.5; private const RIGHT_CELL_HEIGHT_RATIO_CURRENCY_AMOUNT = 1.5; + private const FURTHER_INFORMATION_CELL_HEIGHT_RATIO_COMMON = 1.5; // Positioning private const CURRENCY_AMOUNT_Y = 259; @@ -95,15 +97,15 @@ private function addSwissQrCodeImage(): void $qrCode = $this->getQrCode(); $method = match ($this->getQrCodeImageFormat()) { - QrCode::FILE_FORMAT_SVG => "ImageSVG", - default => "Image", + QrCode::FILE_FORMAT_SVG => 'ImageSVG', + default => 'Image', }; $yPosQrCode = 209.5 + $this->offsetY; $xPosQrCode = self::RIGHT_PART_X + 1 + $this->offsetX; $img = $qrCode->getAsString($this->getQrCodeImageFormat()); - $this->tcPdf->$method("@".$img, $xPosQrCode, $yPosQrCode, 46, 46); + $this->tcPdf->$method('@'.$img, $xPosQrCode, $yPosQrCode, 46, 46); } private function addInformationContentReceipt(): void @@ -201,13 +203,12 @@ private function addAmountContent(): void private function addFurtherInformationContent(): void { $x = self::RIGHT_PART_X; - $this->tcPdf->setCellHeightRatio(self::RIGHT_CELL_HEIGHT_RATIO_COMMON); + $this->tcPdf->setCellHeightRatio(self::FURTHER_INFORMATION_CELL_HEIGHT_RATIO_COMMON); $this->setY(286); - $this->tcPdf->SetFont(self::FONT, '', self::FONT_SIZE_FURTHER_INFORMATION); foreach ($this->getFurtherInformationElements() as $furtherInformationElement) { $this->setX($x); - $this->setContentElement($furtherInformationElement, true); + $this->setContentElement($furtherInformationElement, false); } } @@ -226,6 +227,10 @@ private function addSeparatorContentIfNotPrintable(): void private function setContentElement(OutputElementInterface $element, bool $isReceiptPart): void { + if ($element instanceof FurtherInformation) { + $this->setFurtherInformationElement($element); + } + if ($element instanceof Title) { $this->setTitleElement($element, $isReceiptPart); } @@ -247,7 +252,7 @@ private function setTitleElement(Title $element, bool $isReceiptPart): void $isReceiptPart ? self::FONT_SIZE_TITLE_RECEIPT : self::FONT_SIZE_TITLE_PAYMENT_PART ); $this->printCell( - Translation::get(str_replace("text.", "", $element->getTitle()), $this->language), + Translation::get(str_replace('text.', '', $element->getTitle()), $this->language), 0, 0, self::ALIGN_BELOW @@ -263,15 +268,26 @@ private function setTextElement(Text $element, bool $isReceiptPart): void ); $this->printMultiCell( - str_replace("text.", "", $element->getText()), + str_replace('text.', '', $element->getText()), $isReceiptPart ? 54 : 0, 0, - self::ALIGN_BELOW, - self::ALIGN_LEFT + self::ALIGN_BELOW ); + $this->tcPdf->Ln($isReceiptPart ? self::LINE_SPACING_RECEIPT : self::LINE_SPACING_PAYMENT_PART); } + private function setFurtherInformationElement(FurtherInformation $element): void + { + $this->tcPdf->SetFont(self::FONT, '', self::FONT_SIZE_FURTHER_INFORMATION); + $this->printMultiCell( + iconv('UTF-8', 'windows-1252', $element->getText()), + 0, + 0, + self::BORDER + ); + } + private function setPlaceholderElement(Placeholder $element): void { $type = $element->getType(); @@ -325,10 +341,9 @@ private function printMultiCell( string $text, int $w = 0, int $h = 0, - int $nextLineAlign = 0, - string $textAlign = self::ALIGN_LEFT + int $nextLineAlign = 0 ): void { - $this->tcPdf->MultiCell($w, $h, $text, self::BORDER, $textAlign, false, $nextLineAlign); + $this->tcPdf->MultiCell($w, $h, $text, self::BORDER, self::ALIGN_LEFT, false, $nextLineAlign); } private function printLine(int $x1, int $y1, int $x2, int $y2): void diff --git a/tests/QrBillTest.php b/tests/QrBillTest.php index f7b2fd7c..ff95bb62 100644 --- a/tests/QrBillTest.php +++ b/tests/QrBillTest.php @@ -42,8 +42,8 @@ public function testAlternativeSchemesCanBeSetAtOnce() ]); $qrBill->setAlternativeSchemes([ - AlternativeScheme::create('foo'), - AlternativeScheme::create('foo') + AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'), + AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9') ]); $this->assertSame( @@ -214,7 +214,7 @@ public function testAlternativeSchemesMustBeValid() 'paymentReferenceQr', ]); - $qrBill->addAlternativeScheme(AlternativeScheme::create('foo')); + $qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9')); $qrBill->addAlternativeScheme(AlternativeScheme::create('')); $this->assertFalse($qrBill->isValid()); @@ -230,9 +230,9 @@ public function testMaximumTwoAlternativeSchemesAreAllowed() 'paymentReferenceQr' ]); - $qrBill->addAlternativeScheme(AlternativeScheme::create('foo')); - $qrBill->addAlternativeScheme(AlternativeScheme::create('foo')); - $qrBill->addAlternativeScheme(AlternativeScheme::create('foo')); + $qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9')); + $qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9')); + $qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9')); $this->assertFalse($qrBill->isValid()); } diff --git a/tests/TestData/FpdfOutput/qr-additional-information.pdf b/tests/TestData/FpdfOutput/qr-additional-information.pdf index 43d33cad..573b586a 100644 Binary files a/tests/TestData/FpdfOutput/qr-additional-information.pdf and b/tests/TestData/FpdfOutput/qr-additional-information.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-additional-information.print.pdf b/tests/TestData/FpdfOutput/qr-additional-information.print.pdf index 7d9e7292..39c76f31 100644 Binary files a/tests/TestData/FpdfOutput/qr-additional-information.print.pdf and b/tests/TestData/FpdfOutput/qr-additional-information.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-alternative-schemes.pdf b/tests/TestData/FpdfOutput/qr-alternative-schemes.pdf index 10ea63d3..0e0f6308 100644 Binary files a/tests/TestData/FpdfOutput/qr-alternative-schemes.pdf and b/tests/TestData/FpdfOutput/qr-alternative-schemes.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-alternative-schemes.print.pdf b/tests/TestData/FpdfOutput/qr-alternative-schemes.print.pdf index 254c6bfd..fe404c66 100644 Binary files a/tests/TestData/FpdfOutput/qr-alternative-schemes.print.pdf and b/tests/TestData/FpdfOutput/qr-alternative-schemes.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-full-set.pdf b/tests/TestData/FpdfOutput/qr-full-set.pdf index 51cd617c..6e8eda39 100644 Binary files a/tests/TestData/FpdfOutput/qr-full-set.pdf and b/tests/TestData/FpdfOutput/qr-full-set.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-full-set.print.pdf b/tests/TestData/FpdfOutput/qr-full-set.print.pdf index de46a1b8..22e256e8 100644 Binary files a/tests/TestData/FpdfOutput/qr-full-set.print.pdf and b/tests/TestData/FpdfOutput/qr-full-set.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-international-ultimate-debtor.pdf b/tests/TestData/FpdfOutput/qr-international-ultimate-debtor.pdf index 764325fc..cd64bf5f 100644 Binary files a/tests/TestData/FpdfOutput/qr-international-ultimate-debtor.pdf and b/tests/TestData/FpdfOutput/qr-international-ultimate-debtor.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-international-ultimate-debtor.print.pdf b/tests/TestData/FpdfOutput/qr-international-ultimate-debtor.print.pdf index 12f4997f..6e4af910 100644 Binary files a/tests/TestData/FpdfOutput/qr-international-ultimate-debtor.print.pdf and b/tests/TestData/FpdfOutput/qr-international-ultimate-debtor.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-minimal-setup.pdf b/tests/TestData/FpdfOutput/qr-minimal-setup.pdf index 85c38e65..cfea2210 100644 Binary files a/tests/TestData/FpdfOutput/qr-minimal-setup.pdf and b/tests/TestData/FpdfOutput/qr-minimal-setup.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-minimal-setup.print.pdf b/tests/TestData/FpdfOutput/qr-minimal-setup.print.pdf index 586c6188..a4b7ecee 100644 Binary files a/tests/TestData/FpdfOutput/qr-minimal-setup.print.pdf and b/tests/TestData/FpdfOutput/qr-minimal-setup.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.pdf b/tests/TestData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.pdf index e351a247..a083ba24 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.print.pdf b/tests/TestData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.print.pdf index 9b573603..230e8010 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.print.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-with-mediumlong-creditor-and-unknown-debtor.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.pdf b/tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.pdf index fecb8371..86abf9b2 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.print.pdf b/tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.print.pdf index 3fb657cf..98d0a40d 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.print.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-without-amount-and-long-addresses.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.pdf b/tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.pdf index b7d6225c..119201e1 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf b/tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf index 1c8ca666..2fccc4a6 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-without-amount.pdf b/tests/TestData/FpdfOutput/qr-payment-information-without-amount.pdf index b92f06f2..328d77ff 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-without-amount.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-without-amount.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-without-amount.print.pdf b/tests/TestData/FpdfOutput/qr-payment-information-without-amount.print.pdf index 8a228aef..d7d849af 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-without-amount.print.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-without-amount.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-zero-amount.pdf b/tests/TestData/FpdfOutput/qr-payment-information-zero-amount.pdf index 161a163a..c24a2b05 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-zero-amount.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-zero-amount.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-information-zero-amount.print.pdf b/tests/TestData/FpdfOutput/qr-payment-information-zero-amount.print.pdf index 8fa32202..8c32c228 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-information-zero-amount.print.pdf and b/tests/TestData/FpdfOutput/qr-payment-information-zero-amount.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-reference-non.pdf b/tests/TestData/FpdfOutput/qr-payment-reference-non.pdf index e4678267..6f5780e2 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-reference-non.pdf and b/tests/TestData/FpdfOutput/qr-payment-reference-non.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-reference-non.print.pdf b/tests/TestData/FpdfOutput/qr-payment-reference-non.print.pdf index d326eebe..2c35a6d6 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-reference-non.print.pdf and b/tests/TestData/FpdfOutput/qr-payment-reference-non.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-reference-scor.pdf b/tests/TestData/FpdfOutput/qr-payment-reference-scor.pdf index e563b3da..cd00f165 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-reference-scor.pdf and b/tests/TestData/FpdfOutput/qr-payment-reference-scor.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-payment-reference-scor.print.pdf b/tests/TestData/FpdfOutput/qr-payment-reference-scor.print.pdf index c1b155bf..bfb8d5e9 100644 Binary files a/tests/TestData/FpdfOutput/qr-payment-reference-scor.print.pdf and b/tests/TestData/FpdfOutput/qr-payment-reference-scor.print.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-ultimate-debtor.pdf b/tests/TestData/FpdfOutput/qr-ultimate-debtor.pdf index 8fcdbc7c..edeb6203 100644 Binary files a/tests/TestData/FpdfOutput/qr-ultimate-debtor.pdf and b/tests/TestData/FpdfOutput/qr-ultimate-debtor.pdf differ diff --git a/tests/TestData/FpdfOutput/qr-ultimate-debtor.print.pdf b/tests/TestData/FpdfOutput/qr-ultimate-debtor.print.pdf index ce01503f..0baed6e9 100644 Binary files a/tests/TestData/FpdfOutput/qr-ultimate-debtor.print.pdf and b/tests/TestData/FpdfOutput/qr-ultimate-debtor.print.pdf differ diff --git a/tests/TestData/HtmlOutput/qr-alternative-schemes.svg.html b/tests/TestData/HtmlOutput/qr-alternative-schemes.svg.html index a8e71e23..f720b3c5 100644 --- a/tests/TestData/HtmlOutput/qr-alternative-schemes.svg.html +++ b/tests/TestData/HtmlOutput/qr-alternative-schemes.svg.html @@ -203,7 +203,7 @@CHF
@@ -222,8 +222,8 @@CH44 3199 9123 0008 8901 2
foo
-foo
CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9
+CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9
CHF
@@ -232,8 +232,8 @@CH44 3199 9123 0008 8901 2
foo
-foo
CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9
+CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9
CHF
@@ -228,8 +228,8 @@CH44 3199 9123 0008 8901 2
foo
-foo
CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9
+CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9
CHF
@@ -238,8 +238,8 @@CH44 3199 9123 0008 8901 2
foo
-foo
CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9
+CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9