//being assigned to this InlineDrawingML object.
//See: RunML.initChildren().
throw new IllegalArgumentException("Unsupported Docx Object = " + o);
}
Inline inline = (Inline) list.get(0);
// if (inline.getExtent() != null) {
// int cx = Long.valueOf(inline.getExtent().getCx()).intValue();
// cx = StyleSheet.emuToPixels(cx);
// int cy = Long.valueOf(inline.getExtent().getCy()).intValue();
// cy = StyleSheet.emuToPixels(cy);
// //this.extentInPixels = new Dimension(cx, cy);
// }
if (inline.getEffectExtent() != null) {
//this.effectExtent = new CTEffectExtent(inline.getEffectExtent());
}
if (inline.getGraphic() != null) {
byte[] imagedata = BinaryPartAbstractImage.getImage(wordMLPackage,
inline.getGraphic() );
Image img = Image.getInstance( imagedata );
if (paraParent instanceof Document) {
((Document)paraParent).add(img);
} else if (paraParent instanceof PdfPTable) {
((PdfPTable)paraParent).addCell(img);