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

Allow to use non-compact QR codes with TcPdfOutput #252

Merged
merged 11 commits into from
May 16, 2024

Conversation

sprain
Copy link
Owner

@sprain sprain commented May 15, 2024

Follow up on #250.
Fixes #249

This makes sure the file size of invoices created with TcPdfOutput is not unnecessarily inflated.

With endroid/qr-code 5.0.8, the default behaviour was changed to create optimized SVGs with the <path> element. However, for some unknown reason this inflates the filze size of invoices created with TcPdfOutput, even though the file size of the qr code becomes smaller.

In endroid/qr-code 5.0.9, an option was added to create SVGs in the "old style" again, using <defs> elements. This is what we want to use for TcPdfOutput, if available.

This PR takes care of that. It also covers test cases for SVG qr codes created in both styles.

@sprain sprain changed the title Sdespont qr code options Allow to use non-compact QR codes with TcPdfOutput May 15, 2024
This was referenced May 15, 2024
@sprain
Copy link
Owner Author

sprain commented May 15, 2024

@kohlerdominik @sdespont
Thanks for the collaboration! This should fix the issues discussed today. Feel free to have a look before I merge this.

@sdespont
Copy link
Contributor

Ok for me. Thanks

@sprain sprain merged commit 3728cd1 into master May 16, 2024
18 checks passed
@sprain sprain deleted the sdespont-qr-code-options branch May 16, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ℹ️ File size increases with endroid/qr-code 5.0.8
3 participants