We are delighted to announce the release of Spire.Office for Java 8.9.7. In this version, Spire.Doc for Java optimizes the mechanism for reading documents with existing issues, so that the program throws an exception and terminates when reading such a document to avoid causing memory overflow; Spire.PDF for Java supports converting PDF to SVGZ and comparing PDF documents; Spire.Presentation for Java supports specifying the number of pages when converting PPTX to other document formats. In addition, many known issues are fixed in this version. More details are listed below.
Click the link to download Spire.Office for Java 8.9.7:
Here is a list of changes made in this release
Spire.Doc for Java
Category | ID | Description |
New feature | SPIREDOC-9700 | Optimizes the mechanism for reading documents with existing issues, so that the program throws an exception and terminates when reading such a document to avoid causing memory overflow. |
Bug | SPIREDOC-9156 | Fixes the issue that finding text using regular expressions failed. |
Bug | SPIREDOC-9261 | Fixes the issue that the emphasis marks were lost when converting Word to PDF. |
Bug | SPIREDOC-9560 | Fixes the issue that <p dir="ltl"> tag in HTML did not take effect when converting HTML to Docx. |
Bug | SPIREDOC-9752 | Fixes the issue that fonts were not correct when converting Word to HTML. |
Bug | SPIREDOC-9815 | Fixes the issue that the chart data in the result file was not correct when converting Word to PDF. |
Spire.PDF for Java
Category | ID | Description |
New feature | SPIREPDF-6082 SPIREPDF-6178 SPIREPDF-6220 |
Provides the XlsxSpecialTableLayoutOptions interface to optimize formatting when converting PDF with tables to Excel.
PdfDocument document=new PdfDocument(); document.loadFromFile("input.pdf"); XlsxSpecialTableLayoutOptions options=new XlsxSpecialTableLayoutOptions(false, false, false); document.getConvertOptions().setPdfToXlsxOptions(options); document.saveToFile("output.pdf", FileFormat.XLSX); |
New feature | SPIREPDF-6247 | Supports converting PDF to SVGZ.
document.saveToFile("output.svgz", FileFormat.SVGZ); |
New feature | SPIREPDF-6249 | Synchronized the function of comparing the contents of PDF documents to JAVA.
PdfDocument pdf1 = new PdfDocument(inputFile_1); PdfDocument pdf2 = new PdfDocument(inputFile_2); PdfComparer compare = new PdfComparer(pdf1, pdf2); compare.getOptions().setPageRanges(0, pdf1.getPages().getCount() - 1, 0, pdf2.getPages().getCount() - 1); compare.compare(outputFile); |
Bug | SPIREPDF-6252 | Fixes the issue that the page size is inconsistent after converting PDF to SVG. |
Bug | SPIREPDF-6276 | Fixes the issue that the text is duplicated after converting PDF to PPTX. |
Bug | SPIREPDF-6280 | Fixes the issue that the program threw "PDF file structure is not valid" when loading PDF documents. |
Bug | SPIREPDF-6281 | Fixes the issue that the program threw "NullPointerException" when signing PDF. |
Spire.Presentation for Java
Category | ID | Description |
New feature | SPIREPPT-2366 | Supports specifying the number of pages when converting PPTX to other document formats.
ppt.saveToFile(2,5,outputFile, FileFormat.PDF); |
Bug | SPIREPPT-2282 | Fixes the issue that the application threw a "DocumentEditException" exception when splitting PPTX file. |
Bug | SPIREPPT-2336 | Fixes the issue that the application threw a "Comment by nonexistent author" exception when loading PPTX file. |
Bug | SPIREPPT-2339 | Fixes the issue that the application threw a "NullPointerException" exception when loading PPT file. |
Bug | SPIREPPT-2340 | Fixes the issue that the base64 image data was lost after converting HTML to PPTX. |
Bug | SPIREPPT-2344 | Fixes the issue that the image turned black after converting PPTX to PDF. |
Bug | SPIREPPT-2347 | Fixes the issue that the path of video and image was incorrect after converting PPTX to HTML. |
Bug | SPIREPPT-2348 | Fixes the issue that the application threw an exception and the document format was incorrect after converting PPTX to SVG. |