Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tainted Issue while exporting SVG to PNG / PDF #64

Open
vpenugonda opened this issue Aug 13, 2018 · 1 comment
Open

Tainted Issue while exporting SVG to PNG / PDF #64

vpenugonda opened this issue Aug 13, 2018 · 1 comment

Comments

@vpenugonda
Copy link

Can some share their ideas?

SVG's are not properly exporting when I use HMTL2Canvas and svgs turned out tainted.
tried canvg.

FYI, I wanted to implement something like this using MAPD Charting
https://jsfiddle.net/gh/get/jquery/1.11.0/highslide-software/highcharts.com/tree/master/samples/highcharts/exporting/offline-download-demo/

@vpenugonda vpenugonda changed the title I am working on exporting SVG to PNG / PDF Tainted Issue while exporting SVG to PNG / PDF Aug 13, 2018
@biovisualize
Copy link
Contributor

Although this is a general DOM issue and not specific to Mapd3, here is a general way to convert from SVG to canvas to png while preventing the tainted canvas issue: https://gist.github.com/biovisualize/8187844 You would have to modify it to work with HTML as Mapd3 charts are a mix of SVG and HTML. If you succeed feel free to roll this up into a plugin and submit a pull request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants