Page 1 of 1

Shape Handling :

PostPosted: Thu Mar 04, 2010 1:24 am
by AnbuChezhian
Hi Jason ,
I am using docx4j_2_3_0 version .I tried to convert docx containing shapes to html (docx attached with this post ).I didnt get any image for the shape in docx in converted html.
It seems you have handled for shape in docx2xhtmlNG2.xslt in cases of (./v:shape/v:imagedata) alone .In the attached docx v:shape is not immediately followed by v:imagedata .
Please do the needful help to fix this .

Re: Shape Handling :

PostPosted: Thu Mar 04, 2010 8:06 am
by jason
You're right, this is a limitation in docx4j currently.

The plan is to convert such things (VML and DrawingML) to SVG.

SVN contains some of the infrastructure necessary to do this (eg JAXB classes for SVG), but currently only handles pptx Connection (line).

If you only need to handle a limited subset of VML, you might want to write some of the conversion classes yourself (which I would happily accept). Alternatively, you could ensure your source documents contain PNGs or something instead.