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

Unable to convert SVG(C3 Charts) into word document #16

Open
nkdweb opened this issue Jun 13, 2017 · 0 comments
Open

Unable to convert SVG(C3 Charts) into word document #16

nkdweb opened this issue Jun 13, 2017 · 0 comments

Comments

@nkdweb
Copy link

nkdweb commented Jun 13, 2017

I'm using this plugin to convert web page into word document and it is working great for static html and images.

But when come to advance elements like SVG (C3 Charts), it fails in converting that SVG into word document. So please find my work around for the same

  • Finding SVG elements
  • Create canvas element
  • Draw canvas images
  • Converting SVG into PNG data URI.

These are the steps successfully implemented with the help of saveSvgAsPng.js plugin.

But i'm facing issue in appending that png datauri into MHTML blob. Please advice me what i'm doing wrong and suggest me the solution to achieve this.

Jsfiddle link for your reference

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

1 participant