drawFrame.appendChild(image);
image.newImage(ResourceUtilities.getURI(TEST_PIC));
}
private void addFrameForEmbeddedDoc(OdfContentDom dom, TextPElement para, String path) throws Exception {
OdfDrawFrame drawFrame = new OdfDrawFrame(dom);
drawFrame.setDrawNameAttribute(path);
drawFrame.setTextAnchorTypeAttribute(TextAnchorTypeAttribute.Value.PARAGRAPH.toString());
drawFrame.setSvgXAttribute("0.834cm");
drawFrame.setSvgYAttribute("2.919cm");
drawFrame.setSvgWidthAttribute("13.257cm");
drawFrame.setSvgHeightAttribute("11.375cm");
drawFrame.setDrawZIndexAttribute(0);
DrawObjectElement object = new DrawObjectElement(dom);
object.setXlinkHrefAttribute("./" + path);
object.setXlinkActuateAttribute("onLoad");
object.setXlinkShowAttribute("embed");
object.setXlinkTypeAttribute("simple");
drawFrame.appendChild(object);
para.appendChild(drawFrame);
}