Spire.Office for Java 3.2.0

Spire.Office for Java 3.2.0 is released

We're pleased to announce the release of Spire.Office for Java 3.2.0. This version includes some new features, such as Spire.Presentation supports getting position and crop position of picture, setting BlurRadius property of inner shadow, grouping the secondary axis labels and adding new child node at specific position. Besides, a series of issues occurred when converting shape in PPT to image/PPT to .odp, copying table in PPT, converting Word to PDF/HTML to Word and merging Word files have been fixed. See the content below for more details.

Click the link to download Spire.Office for Java 3.2.0:

Spire.Presentation for Java

New Features:

  • Supports getting position and crop position of picture.
  • 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 the effect only works when saving to PPTX format file.
  • innerShadow.setBlurRadius(20);
    
  • Supports grouping the secondary axis labels.
  • //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 caused incorrect format when converting shape to image.

Spire.Doc for Java

Bug Fixes:

  • Fixes the issue that the application threw an exception when loading a file.
  • Fixes the issue that the font "仿宋" was not embedded successfully when converting Word to PDF.
  • Fixes the issue the application threw an exception when saving a result file after removing section break.
  • Fixes the issue the application threw the NullPointerException when merging files.
  • Fixes the issue that application threw the StringIndexOutOfBoundsException when using the code document.updateTableOfContents().
  • Fixes the issue that the image with Chinese path was not showed in result file after converting HTML to Word.