Rendering QR Code into PDF without control

Posted by: seaninglis on 2 July 2022, 11:33 am EST

    • Post Options:
    • Link

    Posted 2 July 2022, 11:33 am EST

    I’d like to be able to render a QR code using an itemformatter for a cell when I’m exporting it to PDF.

    I’m able to do this with a hidden element, where I set the value, grab the resulting dataUrl() from the component, and then draw that data onto the pdf with canvas.openImage, but this seems a bit clumsy.

    Is there any library function / sequence of functions I can call that will transform a string into the dataUrl of the qr code for that string without passing it through a hidden component?

  • Posted 7 July 2022, 7:05 am EST

    Hello,

    Unfortunately, we do not have any such function which supports the above requirement at the moment. However, if you are facing any issues in performing the above operation, please provide us a sample depicting the issue or make changes in the below sample so that we may debug it and reply accordingly.

    https://jscodemine.grapecity.com/share/LELkvQTbmUWq5kKOKPga_A/

    Regards

    Dushyant Sharma

  • Posted 7 July 2022, 9:23 am EST

    Hi,

    Thanks for the response - that’s a lot more compact than the way I was doing, more than happy to just steal it off you.

    Sean

  • Posted 10 July 2022, 9:30 pm EST

    Hi Sean,

    We are glad to know that the issue has been resolved. Feel free to contact us if you have any further queries.

    Regards

    Dushyant Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels