Examples of STShapeType


Examples of org.docx4j.dml.STShapeType

      CTShapeProperties spPr = (CTShapeProperties)o;
     
      if (spPr.getPrstGeom()==null) {
        System.out.println("- this shape not preset");
      } else {
        STShapeType shapeType = spPr.getPrstGeom().getPrst();
       
        CTCustomGeometry2D customGeo = PresetGeometries.getInstance().get(shapeType.value());
       
        if (customGeo==null) {
          System.out.println("- definition MISSING for " + shapeType.value() )
        } else if (shapeType.value().equals("leftArrow") ) {
          System.out.println("- skipping " + shapeType.value() + " (corrupts pptx)")// tested 2010 x64; I wonder why                 
        } else {
          // really should clone here
          spPr.setCustGeom(customGeo);
         
          spPr.setPrstGeom(null);
          System.out.println("- " + shapeType.value() + " processed");         
         
        }
       
      }
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.