You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recommended solution per the stackoverflow article was to use toDataURL() and render and image instead of the canvas.
If there is a way to make it work with canvas it would be ideal, but if not, is it possible to update this library to provide the option to render out as an image instead?
The text was updated successfully, but these errors were encountered:
fadugyamfi
changed the title
QRCode does not show when printed NgxPrint
QRCode does not show when printed with NgxPrint
Apr 22, 2022
If I print the demo page via the normal browser print function it appears to work fine, and I can see there is an open issue with ngx-print indicating that it does not support canvas selemxmn/ngx-print#105
I think the best solution would be to add support for canvas to the ngx-print library, as this feels like a generally useful enhancement to it that extends beyond the QR Code use case.
I'm open to the idea of supporting rendering to an image here as well, though I'm not 100% sure on the best way to achieve this, as the current implementation is a directive selecting a canvas element, eg:
Similar to the issue reported here https://stackoverflow.com/questions/62400691/using-ngx-print-to-print-ngx-qrcode, the QRCode generated by this library is not visible when attempting to print a page.
The recommended solution per the stackoverflow article was to use
toDataURL()
and render and image instead of the canvas.If there is a way to make it work with canvas it would be ideal, but if not, is it possible to update this library to provide the option to render out as an image instead?
The text was updated successfully, but these errors were encountered: