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

Base64 SVG QR code is not rendered in Adobe Reader #125

Open
zaalbarxx opened this issue Sep 2, 2024 · 2 comments
Open

Base64 SVG QR code is not rendered in Adobe Reader #125

zaalbarxx opened this issue Sep 2, 2024 · 2 comments
Milestone

Comments

@zaalbarxx
Copy link

zaalbarxx commented Sep 2, 2024

Hi!
We encountered a strange issue where QR code rendered inside img tag (as base64 SVG) is not displayed at all in Adobe Reader. It happens only with version >=2.0 of DOMPDF, previously we had 1.x and it worked fine. It is quite interesting because it renders properly in all other PDF readers, including Chrome and other desktop PDF readers. Any idea what could have changed between versions that it does not work with Adobe ?
Rendering QR code as base64 PNG works fine BTW.

It's Laravel code, but it should not matter at all.

image

hello_1x.pdf
hello_2x.pdf

@zaalbarxx zaalbarxx changed the title Base64 QR code is not rendered in Adobe Reader Base64 SVG QR code is not rendered in Adobe Reader Sep 2, 2024
@bsweeney
Copy link
Member

bsweeney commented Sep 3, 2024

I can confirm that I see the same issue using the SVG string that's in the included PDF. I do not have any ideas right now what would cause this, but will take a look.

@bsweeney
Copy link
Member

bsweeney commented Sep 7, 2024

Transferring this issue to php-svg-lib since that's where it will need to be addressed.

It looks like the cause is the transparent stroke styling. If I remove that attribute or set it to "none" then Adobe renders as expected. I suspect, but have not yet confirmed, that something about the graphic state for the stroke is bleeding over into the fill, making the paths transparent.

@bsweeney bsweeney transferred this issue from dompdf/dompdf Sep 7, 2024
@bsweeney bsweeney added this to the 1.0.1 milestone Sep 7, 2024
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

No branches or pull requests

2 participants