Page 1 of 1

PNG with a SVG overlay, best approach?

PostPosted: Fri Jun 15, 2018 9:16 pm
by olddave
I have an exported Word document that I am munging with a hierarchical object model.
The approach I have taken is to walk the model and do String replace at placeholders I put in the originally export sections of the document.

Now I come to the more difficult part. I have a stored filename for each image and in my object model a set of SVG annotations that appear over the top of that png (or jpeg).
I followed the example here - https://github.com/plutext/docx4j/blob/ ... geAdd.java to grab the image. I could not find how to convert the org.docx4j.dml.wordprocessingDrawing.Inline to a XML WordML string though, pointer?

Beyond that I have a SVG string I need to overlay on that image. What is the best approach to overlaying this on top if the image I talk about above?

Thank you.