Hello dear developers.
I faced the following problem. I must save the chart in PNG or PDF format. If I export directly from canvas to image or PDF, I lose all the icons(SVG) on the chart that I use for visualization. Icons are stored locally in the file format SVG. When exporting from canvas to SVG file, icons are saved.
I would also like to note that in the introduction of GO JS there is a disclaimer about this function, but there is no example of its use. GoJS Making SVG -- Northwoods Software “SVG export can be useful as content for a PDF. Most GoJS users who create PDFs do so by exporting Diagrams to SVG or images and place that content in their PDFs, on the server or elsewhere.”
If you have any resolves, I’ll be happy to hear them.
Are you saying that when you call Diagram.makeImageData the resulting image shows blank where the SVG Pictures are? But everything looks correct in the browser window? That sounds like a CORS security problem with those SVG files.