Spire.Presentation for Java 8.4.1 supports adjusting table column width according to the text width

2023-04-18 05:37:30

We are pleased to announce the release of Spire.Presentation for Java 8.4.1. This version supports adjusting table column width according to the text width and setting the round radius for shapes. Besides, it also supports adding new slides using custom layouts. What's more, some known issues are fixed in this version, such as the issue that there was an error message when opening the document after setting SeriesLinesColor. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-2213 Supports adjusting table column width according to the text width.
Presentation ppt = new Presentation();
ppt.loadFromFile(inputFile);
ITable table = (ITable) ppt.getSlides().get(0).getShapes().get(0);
table.getColumnsList().get(2).adjustColumnByTextWidth();
ppt.saveToFile(outputFile, FileFormat.AUTO);
New feature SPIREPPT-2220 Supports setting the round radius for shapes.
IAutoShape autoShape=iSlide.getShapes().appendShape(ShapeType.ROUND_CORNER_RECTANGLE,new Rectangle2D.Float(50,50,150,150));
IAutoShape autoShape1=iSlide.getShapes().appendShape(ShapeType.ONE_ROUND_CORNER_RECTANGLE,new Rectangle2D.Float(250,50,150,150));
IAutoShape autoShape2=iSlide.getShapes().appendShape(ShapeType.ONE_SNIP_ONE_ROUND_CORNER_RECTANGLE,new Rectangle2D.Float(450,50,150,150));
IAutoShape autoShape3=iSlide.getShapes().appendShape(ShapeType.TWO_DIAGONAL_ROUND_CORNER_RECTANGLE,new Rectangle2D.Float(50,250,150,150));
IAutoShape autoShape4=iSlide.getShapes().appendShape(ShapeType.TWO_SAMESIDE_ROUND_CORNER_RECTANGLE,new Rectangle2D.Float(250,250,150,150));
autoShape.setRoundRadius(autoShape.getWidth()/3);
autoShape1.setRoundRadius(autoShape1.getWidth()/3);
autoShape2.setRoundRadius(autoShape2.getWidth()/3);
autoShape3.setRoundRadius(autoShape3.getWidth()/3);
autoShape4.setRoundRadius(autoShape4.getWidth()/3);
New feature SPIREPPT-2228 Supports adding new slides using custom layouts.
Presentation presentation = new Presentation();
presentation.loadFromFile(intputFile);
//get custom layouts
ILayout iLayout = presentation.getMasters().get(0).getLayouts().get(1);
//append new slide
presentation.getSlides().append(iLayout);
//insert new slide
presentation.getSlides().insert(0, iLayout);
presentation.saveToFile(outputFile, FileFormat.PPTX_2016);
presentation.dispose();
New feature SPIREPPT-2231 Supports setting SmartArtLayoutType.PICTURE_ORGANIZATION_CHART and SmartArtLayoutType.NAME_AND_TITLE_ORGANIZATION_CHART when adding SmartArt.
ppt.getSlides().get(0).getShapes().appendSmartArt(50, 50, 250, 250, SmartArtLayoutType.PICTURE_ORGANIZATION_CHART);
ppt.getSlides().append().getShapes().appendSmartArt(50, 50, 250, 250, SmartArtLayoutType.NAME_AND_TITLE_ORGANIZATION_CHART);
Bug SPIREPPT-2071 Fixes the issue that there was an error message when opening the document after setting SeriesLinesColor.
Bug SPIREPPT-2209 Fixes the issue that there was no output file when converting Html files to PPT.
Bug SPIREPPT-2216 Fixes the issue that the application threw "OutOfMemoryError" when converting PPT to images.
Bug SPIREPPT-2226 Fixes the issue that the program hung for a long time when converting PPT to SVG.
Click the link below to download Spire.Presentation for Java 8.4.1: