Skip to content

QR Code PNGs Render with Only Borders (No Fill) in TCPDF #196

@eugenio11

Description

@eugenio11

For some reasons, I am required to use GDLibRenderer, that, despite its limits, seems to work well with simple QR Codes displayed in a Web page.

However, if I embed them in a PDF via the TCPDF library, the QR codes appear with only outlines and no filled black modules — rendering them unreadable. Strangely, switching the format to 'gif':

new GDLibRenderer($qrcode_size, 4, 'gif');
resolves the issue (though blurry), suggesting that the root cause is maybe transparency? Any suggestion to solve this issue?

Thanks in advance for any help or clarification!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions