Spire.Presentation for Java 7.8.2 supports setting the time of advancing slide and determining whether the document is encrypted

2022-08-17 09:55:58

We are excited to announce the release of Spire.Presentation 7.8.2 for Java. This version supports setting the time of advancing slide and determining whether the document is encrypted. Besides, it also enhances the conversion from PowerPoint to HTML and PDF. What’s more, some known issues are successfully fixed, such as the issue that the selection state of “Advance Slide" was incorrect after splitting PowerPoint file. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-2014 Supports setting the time of advancing Slide. Note: 03 format is not currently supported.
Presentation ppt = new Presentation();
ppt.loadFromFile(inputFile);
for(int i=0;i<ppt.getSlides().getCount();i++)
{ ppt.getSlides().get(i).getSlideShowTransition().isAdvanceAfterTime(true);
//设置自动换片时间,isAdvanceAfterTime设置为TRUE才生效
ppt.getSlides().get(i).getSlideShowTransition().setAdvanceAfterTime(5000L);
}
ppt.saveToFile(outputFile,FileFormat.AUTO);
New feature SPIREPPT-1995 Provides the method isSlideSizeAutoFit() to fit content to the slide size when cloning slides. Note: currently only 4:3->16:9 is supported.
Presentation presentation1 =new Presentation();
presentation1.loadFromFile(inputFile_1);
Presentation presentation2 =new Presentation();
presentation2.loadFromFile(inputFile_2);
presentation1.isSlideSizeAutoFit(true);
ILayout layout = presentation1.getSlides().get(0).getLayout();
presentation1.getSlides().append(presentation2.getSlides().get(0),layout);
presentation1.saveToFile(outputFile, FileFormat.PPTX_2013);
New feature SPIREPPT-2032 Supports determining whether the document is encrypted.
ppt.isPasswordProtected(filepath)
ppt.isPasswordProtected(inputstream)
Bug SPIREPPT-2011 Fixes the issue that the application threw the “java.lang.ClassCastException" when converting PPT to HTML.
Bug SPIREPPT-2013 Fixes the issue that the selection state of “Advance Slide" was incorrect after spliting PPT file.
Bug SPIREPPT-2018 Fixes the issue that the application threw the "ArrayIndexOutOfBoundsException" when loading PPT.
Bug SPIREPPT-2030 Fixes the issue that after saving the slide to PPT, the Microsoft PowerPoint prompted that the content has error when opening the saved PPT.
Bug SPIREPPT-2031 Fixes the issue that the application threw an exception when loading PPT.
Bug SPIREPPT-2033 Fixes the issue that the content formatting was incorrect after converting PPT to PDF.
Click the link below to download Spire.Presentation for Java 7.8.2: