Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pdf rendering issues for AlternativeSchemes #215

Closed
rsteimen opened this issue Feb 20, 2023 · 1 comment · Fixed by #228
Closed

Pdf rendering issues for AlternativeSchemes #215

rsteimen opened this issue Feb 20, 2023 · 1 comment · Fixed by #228
Labels
bug Something isn't working

Comments

@rsteimen
Copy link

Following issues were discovered as shown in the image while rendering alternative schemes in pdfs:
a) longer value is word-wrapped
b) text is in wrong size

A value for the alternative scheme is appended as followed:
$qrBill->addAlternativeScheme(QrBill\DataGroup\Element\AlternativeScheme::create('CC/XRPL/10/rGqMTWrkWnb8ekVsZeNeS9t1pKBAAVDzSM'));

Reason a)
In FpdfOutput.php, for $this->setContentElement($furtherInformationElement, true) true is passed instead of false (argument bool $isReceiptPart)

Reason b)
In FpdfOutput.php, setTextElement always sets $this->fpdf->SetFont(...) overriding previously set values in addFurtherInformationContent().

2023-02-20 16_18_27-QR-Zahlteil App 2023-02-20-11 pdf - Adobe Acrobat Reader (64-bit)

@rsteimen rsteimen changed the title Wrong pdf rendering for AlternativeSchemes Pdf rendering issues for AlternativeSchemes Feb 20, 2023
@sprain sprain added the bug Something isn't working label Feb 20, 2023
@sprain
Copy link
Owner

sprain commented Oct 1, 2023

Thanks for reporting.
There is a fix ready in #228. You are welcome to test it, if you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants