raphael icon indicating copy to clipboard operation
raphael copied to clipboard

how to add svg barcode into workspace?

Open ibalaji777 opened this issue 2 years ago • 2 comments

i have doubt in adding a barcode into raphael js but i found jsbarcode with svg format but i don't how to add into raphael js workspace.

1.raphael js

var paper = Raphael('holder'); 2.svg

var svg= document.createElement("svg");
JsBarcode(svg, "Hi world!");
how to add svg into raphael js?

ibalaji777 avatar Oct 01 '21 06:10 ibalaji777

I would look into Snap.svg rather than Raphael. A lot of code is very similar by same author and it can do svg imports etc.

ibrierley avatar Oct 01 '21 06:10 ibrierley

@ibrierley Thank you for suggest

ibalaji777 avatar Oct 01 '21 07:10 ibalaji777