Spire.Presentation for Java 8.6.2 supports getting the number and position of vertices in a polygon

2023-06-27 07:56:50

We are pleased to announce the release of Spire.Presentation for Java 8.6.2. This version supports getting the number and position of vertices in a polygon. What's more, some known issues are fixed in this version, such as the issue that 3D rotation effect did not work when adding an image. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-2152 Supports getting the number and position of vertices in a polygon.
Presentation ppt = new Presentation();
ppt.loadFromFile(inputFile);
IAutoShape shape = (IAutoShape)ppt.getSlides().get(0).getShapes().get(0);
ArrayList<Point2D> points = shape.getPoints();
String text1 = "point count:" + " " + points.size() + "\r\n";
FileWriter writer1 = new FileWriter(outputFile, true);
writer1.append(text1);
writer1.close();
for (int i = 0; i < points.size(); i++)
{
    String text2 = "point" + i + " " + points.get(i) + "\r\n";
    FileWriter writer2 = new FileWriter(outputFile, true);
    writer2.append(text2);
    writer2.close();
}
Bug SPIREPPT-2262 Fixes the issue that 3D rotation effect did not work when adding an image.
Bug SPIREPPT-2263 Fixes the issue that the program reported a CRC error: the file being extracted appears to be corrupted when loading a PowerPoint file.
Bug SPIREPPT-2276 Fixes the issue that the order of adding images to the picture organization chart was incorrect.
Bug SPIREPPT-2277 Fixes the issue that the currency symbol was duplicated in data edited with WPS after saving a PowerPoint document.
Click the link below to download Spire.Presentation for Java 8.6.2: