react-qrcode-logo icon indicating copy to clipboard operation
react-qrcode-logo copied to clipboard

Function get qrcode as SVG

Open Neofield-Dylan opened this issue 4 years ago • 2 comments

Is there some function that I can get the Qrcode as svg ?

To clarify my use case: I want to generate many qrcodes at once and put all together in a A4 page to print all together. So, then, I do not need to print each one, one by one. I know that I could create a page rendering all Qrcode components, and, then, add a button to print all this page. But, I would like to have a nicer UX and just add a button 'print all qrcodes' on the bottom of my table page, and, then had a downloadable svg with all qrcodes generated at runtime. For this, I need a function that I pass the value to be encrypted and the logo (also some others params like ecLevel, size, almost all the inputs the components have) and get the qrcode svg. Is there such function in this lib ?

Thanks in advance for the help.

Neofield-Dylan avatar Oct 01 '20 13:10 Neofield-Dylan

A renderAs option would be great!

strarsis avatar Mar 23 '22 22:03 strarsis

I assume this is still not available, is there a workaround?

sdraper69 avatar Dec 19 '23 16:12 sdraper69