Spire.Presentation for Java 3.2.2

Spire.Presentation for Java 3.2.2 supports getting position and crop position of pictures

We're pleased to announce the release of Spire.Presentation for Java 3.2.2. This version supports setting BlurRadius property of inner shadow and grouping the secondary axis labels, as well as adds addNodeByPosition method to add a new child node at specific position. Besides, it also successfully fixes some issues that occurred when manipulating documents. See the following content for more details.

New Features:

  • Supports getting position and crop position of pictures.
  • Presentation ppt=new Presentation(); 
    ppt.loadFromFile(filepath); 
    IShape shape=ppt.getSlides().get(0).getShapes().get(0); 
    if (shape instanceof SlidePicture) { SlidePicture picture=(SlidePicture)shape; 
    //crop position Rectangle2D cropPosition=picture.getPictureFill().getCropPosition(); 
    //picture position Rectangle2D picPosition=picture.getPictureFill().getPicturePosition(); }
    
  • Supports setting BlurRadius property of inner shadow. Note that the effect only works when saving to PPTX format file.
  • innerShadow.setBlurRadius(20);
    
  • Supports grouping the secondary axis labels.
  • //Get the category axis from the chart. IChartAxis chartAxis = chart.getPrimaryCategoryAxis(); 
    //Group the axis labels that have the same first-level label. if (chartAxis.hasMultiLvlLbl()) { chartAxis.isMergeSameLabel(true); }
    
  • Adds addNodeByPosition method to add a new child node at specific position.
  • //Get a node node = smartArt.getNodes().get(1); position = 1; 
    //Add a new child node at specific position ISmartArtNode childNode = node.getChildNodes().addNodeByPosition(position);
    

Bug Fixes:

  • Fixes the issue that the application threw an exception when converting shape to image.
  • Fixed the issue that setting the TransitionType.ZOOM didn't take effect.
  • Fixed the issue that setting the document properties didn't take effect when saving to .odp format file.
  • Fixed the issue that the datalabel could not be added successfully.
  • Fixed the issue that after copying a table from one PowerPoint file to another, the generated file could not be opened successfully.
  • Fixed the issue that it caused incorrect format when converting shape to image.

Click the link below to download Spire.Presentation for Java 3.2.2: