gcoro / react-qrcode-logo

React + Typescript component to generate a QR Code with custom colors and logo
MIT License
486 stars 41 forks source link

Function get qrcode as SVG #12

Open Neofield-Dylan opened 4 years ago

Neofield-Dylan commented 4 years ago

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.

strarsis commented 2 years ago

A renderAs option would be great!

sdraper69 commented 10 months ago

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