We are excited to announce the release of Spire.Presentation for Java 10.6.2. The latest version supports copying formulas within paragraphs. Besides, some known bugs are fixed successfully in the new version, such as the issue that the program threw an "Unknown file format" error when converting ODP to PDF. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New feature | SPIREPPT-2856 | Supports copying formulas within paragraphs.
Presentation sourcePpt = new Presentation();
sourcePpt.loadFromFile("data1.pptx");
Presentation targetPpt = new Presentation();
targetPpt.loadFromFile("data2.pptx");
copyNotes(sourcePpt.getSlides().get(0),targetPpt.getSlides().get(0));
targetPpt.saveToFile("out.pptx", com.spire.presentation.FileFormat.PPTX_2013);
public static void copyNotes(ISlide sourceSlide, ISlide targetSlide) throws DocumentEditException {
if (sourceSlide.getNotesSlide() == null) {
System.out.println(sourceSlide.getName());
return;
}
// The paragraph contains formulas
System.out.println(sourceSlide.getNotesSlide().getNotesTextFrame().getText());
ParagraphCollection paragraphs = sourceSlide.getNotesSlide().getNotesTextFrame().getParagraphs();
targetSlide.getNotesSlide().getNotesTextFrame().getParagraphs().append(paragraphs);
|
| Bug | SPIREPPT-2850 SPIREPPT-2868 SPIREPPT-2869 SPIREPPT-2870 SPIREPPT-2879 SPIREPPT-2883 |
Fixes the issue of incorrect rendering when adding LaTeX formulas to presentations. |
| Bug | SPIREPPT-2861 | Fixes the issue that the program threw an "Unknown file format" error when converting ODP to PDF. |
| Bug | SPIREPPT-2870 | Fixes the issue that the program threw a "ClassCastException" when adding LaTeX formulas. |
| Bug | SPIREPPT-2884 | Fixes the issue that the program threw a "NullPointerException" when retrieving content. |
| Bug | SPIREPPT-2891 | Fixes the issue that documents were corrupted when opening files with added LaTeX formulas. |
| Bug | SPIREPPT-2894 | Fixes the issue that data retrieval was incorrect for Doughnut Charts. |
Click the link below to download Spire.Presentation for Java 10.6.2: