by bzanotti » Fri Jun 01, 2012 12:02 am
Thanks.
Question: It's correct this code ?
OpcPackage opcPackage = OpcPackage.load(new java.io.File(inputfilepath));
DiagramLayoutPart source = null;
DiagramDataPart sourceData = null;
for (Entry<PartName,Part> entry : opcPackage.getParts().getParts().entrySet() ) {
if (entry.getValue().getContentType().equals(ContentTypes.DRAWINGML_DIAGRAM_LAYOUT )) {
source = (DiagramLayoutPart)entry.getValue();
}
if (entry.getValue().getContentType().equals(ContentTypes. DRAWINGML_DIAGRAM_DATA)) {
sourceData = (DiagramDataPart) entry.getValue();
}
}
This DiagramLayoutPart or DiagramDataPart contains the properties of SmartArt ?