What's the easiest way to extract a DrawingML drawing and render it as an image, or as SVG? From an input word document, I need to provide the contents of the word document via web page. Most of the content can be dummyied down and the general format of the document is known. I just need to extract a read-only view of the drawings within the word document.
You mean to say you want to extract images from word?
Not exactly. These word docs are actually the result of PDF files converted to Word. What was originally drawings made up of mutliple shapes - mostly text boxes and pics, turned into text box Shapes on the drawing layer and InlineShape images on the text layer.
I've been working with the .Net Interop libraries to see if they have more API functionality, and ended up converting the InlineShapes to Shapes so I could reason on their position relative to the other shapes. So now what i have is a collection of Shapes anchored on a page that collectively form a "Figure" that I'd like to extract, if possible, as vector graphcs, but worst case as a single image.
So what I'm looking for is anywork, perhaps XSLT, that could transform a set of shapes into SVG.
Are you referring to an AutoShape, a custom shape or both? Are you looking for just the paths or also things like color, borders, etc? If you just want the path that can be exported to SVG or other formats, you could map the shape's attributes to the different format and just save in that. If you provide more info, we may be able to help more.