JAXBElements and BinaryData
Posted: Fri Apr 05, 2013 11:12 pm
Hello,
by using TraversalUtil i can get the logical structure of my docx-File, e.g.:
...
org.docx4j.wml.P
org.docx4j.wml.R
org.docx4j.wml.CTObject
org.docx4j.vml.CTShape
org.docx4j.vml.CTImageData
org.docx4j.vml.officedrawing.CTOLEObject
...
But how can i get the actual binary data for CTImageData and CTOLEObject. I can get all MetafileWmfPart, MetafileEmfPart and OleObjectBinaryPart with getParts, but then i don't know which Part belongs to which CTxxx and so the the logical structure is lost.
Is there a way to get the the Part for a JAXBElement or vice versa? I want to extract ether the OLEObject or the Image, but not both.
Thanks
Winfried
by using TraversalUtil i can get the logical structure of my docx-File, e.g.:
...
org.docx4j.wml.P
org.docx4j.wml.R
org.docx4j.wml.CTObject
org.docx4j.vml.CTShape
org.docx4j.vml.CTImageData
org.docx4j.vml.officedrawing.CTOLEObject
...
But how can i get the actual binary data for CTImageData and CTOLEObject. I can get all MetafileWmfPart, MetafileEmfPart and OleObjectBinaryPart with getParts, but then i don't know which Part belongs to which CTxxx and so the the logical structure is lost.
Is there a way to get the the Part for a JAXBElement or vice versa? I want to extract ether the OLEObject or the Image, but not both.
Thanks
Winfried