I have one of client has some there own MAP which is coming from map tag into code
while it binds svg at running time.
When I convert SVG to png image is coming blank while my svg has map of selected area.
- var svg = document.getElementById('OpenLayers_Layer_Vector_75_svgRoot');
- var xml = new XMLSerializer().serializeToString(svg);
- var data = "data:image/svg+xml;base64," + btoa(xml);
- var img = new Image();
- img.setAttribute('src', data);
- document.body.appendChild(img);


SandyRank #2,015 · 718 reputationPosted Oct 10, 2017, 1:36 AM EDT
Gautam ParmarRank #2,471 · 568 reputationPosted Oct 10, 2017, 10:17 PM EDT
Mohamed AbedallahRank #2,074 · 697 reputationPosted Dec 21, 2017, 6:30 AM EST
You can check the document viewer and converting features by checking the menu items “File => Export” in this online demo:
https://demo.leadtools.com/JavaScript/DocumentViewer/index.html
https://www.leadtools.com/help/leadtools/v19/dh/doxc/documentconverterjobs.html