Background
I am developing an Office add in using the Word Javascript APIs to insert some charts in the document.
My Current approach is as follows:
Generate SVG image in the task pane=> draw image on canvas with canvg => get canvas image as png => insert in Word Document
This works fine except for one thing - the png image itself is blurry and there is quite a lot of quality loss because of the conversion.
Question
Is it possible to use the Body.insertInlinePictureFromBase64 with a vector graphics image?
Some Notes:
- Tried inserting the image as plain XML - didn't work
- Tried encoding the svg string into base64 and passing it through the insertInlinePicture method to insert - couldn't get it to work just shows a broken image (probably because it expects an actual bitmap image rather than vector image)