Hello Jason,
I created a sample docx-File using Office and inserted two OLE-Objects using Copy/Paste from Accelrys-Draw. With getParts() i get 2 OleObjectBinaryPart and 2 MetafileEmfPart,
but i don't know which Emf belongs to which OleObject. With TraversalUtil i get the hierarchy of JAXC-Elements and know which CTImageData belongs to which CTOLEObject. So now i just need the connection CTImageData->MetafileEmfPart and CTOLEObject->OleObjectBinaryPart. CTImageData has relid=null, and CTOLEObject has no relid, only a shapeid?
- Code: Select all
org.docx4j.wml.P
org.docx4j.wml.ProofErr
org.docx4j.wml.R
org.docx4j.wml.Text
org.docx4j.wml.ProofErr
org.docx4j.wml.R
org.docx4j.wml.Text
org.docx4j.wml.P
org.docx4j.wml.CTBookmark
org.docx4j.wml.CTMarkupRange
org.docx4j.wml.P
org.docx4j.wml.P
org.docx4j.wml.R
org.docx4j.wml.Text
org.docx4j.wml.P
org.docx4j.wml.R
org.docx4j.wml.CTObject
org.docx4j.vml.CTShapetype
org.docx4j.vml.CTStroke
org.docx4j.vml.CTFormulas
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTF
org.docx4j.vml.CTPath
org.docx4j.vml.officedrawing.CTLock
org.docx4j.vml.CTShape
Id: null
org.docx4j.vml.CTImageData
Id: rId5 RelID=null
org.docx4j.vml.officedrawing.CTOLEObject
Id: rId6 ShapeID=_x0000_i1032
org.docx4j.wml.P
org.docx4j.wml.P
org.docx4j.wml.R
org.docx4j.wml.Text
org.docx4j.wml.P
org.docx4j.wml.R
org.docx4j.wml.CTObject
org.docx4j.vml.CTShape
Id: null
org.docx4j.vml.CTImageData
Id: rId7 RelID=null
org.docx4j.vml.officedrawing.CTOLEObject
Id: rId8 ShapeID=_x0000_i1030
Thanks
Winfried