Skip to Content
0
Dec 26, 2022 at 11:24 AM

Barcode creation from string in MDK

188 Views

Hello All,

I have a requirement to generate code128 barcode(not QR Code) from text in MDK and to achieve this i have used many npm packages like jsbarcode and barcode-2-svg but at the end all this package gives output in canvas/svg/dom element.

Is there any way we can render DOM element in MDK? or can we use DOM methods like atob/btoa or XMLSerializer in MDK?

I have seen a similar requirement achieve in this post(https://answers.sap.com/questions/13412127/sap-mdk-how-to-resize-an-image.html) but the nativescript plugin(nativescript-zxing) used is no more available.

If there is any way then pls let me know.

Regards,
Rohit