We are happy to announce the release of Spire.Office for Java 8.4.5. In this version, Spire.Doc for Java supports Docx2026 and Docx2019 file formats; Spire.Presentation for Java supports adding new slides using custom layouts; Spire.PDF for Java optimizes the memory usage of compressing images; Spire.XLS for Java enhances the conversion from Excel to HTML and PDF. Besides, a lot known issues are fixed in this version. More details are listed below.
Click the link to download Spire.Office for Java 8.4.5:
Here is a list of changes made in this release
Spire.Doc for Java
Category | ID | Description |
New feature | SPIREDOC-6422 | Supports Docx2016 and Docx2019 file formats.
Spire.Doc.FileFormat.Docx2016 Spire.Doc.FileFormat.Docx2019 |
New feature | SPIREDOC-6913 | Supports updating only page numbers of the contents.
document.updateTOCPageNumbers(); document.updateTOCPageNumbers(TableOfContent toc); |
New feature | SPIREDOC-9216 | Supports retrieving replies to comments.
Document doc = new Document(); doc.loadFromFile(inputFile); Comment comment = doc.getComments().get(0); CommentsCollection comCollect = comment.getReplyCommentItems(); String author = comCollect.get(0).getFormat().getAuthor(); Date dateTime = comCollect.get(0).getFormat().getDateTime(); String replayContent = ""; IDocumentObjectCollection objCollect = comCollect.get(0).getBody().getChildObjects(); for (int i = 0; i < objCollect.getCount(); i++) { DocumentObject obj = objCollect.get(i); if (obj.getDocumentObjectType() == DocumentObjectType.Paragraph) { replayContent = ((Paragraph) obj).getText(); } } |
Bug | SPIREDOC-8680 | Fixes the issue that the page orientation changed from portrait to landscape after accepting revisions. |
Bug | SPIREDOC-8786 SPIREDOC-9159 |
Fixes the issue that the layout was incorrect after converting Word to PDF. |
Bug | SPIREDOC-8789 | Fixes the issue that the content formatting was incorrect after converting Word to PDF. |
Bug | SPIREDOC-9019 | Fixes the issue that the page numbers of the contents were not updated correctly. |
Bug | SPIREDOC-9097 | Fixes the issue that an exception "java.lang.NullPointerException" occurred when loading an RTF document. |
Bug | SPIREDOC-9099 SPIREDOC-9123 SPIREDOC-9124 SPIREDOC-9177 |
Fixes the issue that text line breaks were incorrect after converting Word to PDF. |
Bug | SPIREDOC-9130 | Fixes the issue that an exception "java.lang.NullPointerException" occurred when converting Word to PDF. |
Bug | SPIREDOC-9151 | Fixes the issue that formulas could not be edited after merging documents. |
Bug | SPIREDOC-9153 | Fixes the issue that the document format was incorrect after loading and saving a document. |
Bug | SPIREDOC-9181 | Fixes the issue that character spacing scaling styles were lost after converting Word to HTML. |
Bug | SPIREDOC-9196 | Fixes the issue that an error "Cannot find stream '1Table' in the storage" occurred when loading a document. |
Bug | SPIREDOC-9227 | Fixes the issue that an exception "java.lang.NullPointerException" occurred when converting to PDF after comparing two Word documents. |
Bug | SPIREDOC-9251 | Fixes the issue that line breaks were incorrect after converting Word to OFD. |
Bug | SPIREDOC-9260 | Fixes the issue that an exception "java.lang.NullPointerException" occurred when loading a DOC document. |
Bug | SPIREDOC-9280 | Fixes the issue that an exception "java.lang.IllegalArgumentException" occurred when comparing two Word documents. |
Spire.Presentation for Java
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. |
Spire.PDF for Java
Category | ID | Description |
Bug | SPIREPDF-5221 | Optimizes memory usage when compressing images. |
Bug | SPIREPDF-5727 | Fixes the issue that the document size increased a lot after adding watermark. |
Bug | SPIREPDF-5828 | Fixes the issue that the converted PDF/A1A document failed to veraPDF verification. |
Bug | SPIREPDF-5842 | Fixes the issue that the application threw "NullPointerException" when converting PDF to HTML. |
Bug | SPIREPDF-5861 | Fixes the issue that the character overlapped when converting PDF to SVG. |
Bug | SPIREPDF-5880 | Fixes the issue that removing PDF editing permission was invalid. |
Spire.XLS for Java
Category | ID | Description |
Bug | SPIREXLS-4512 | Fixed the issue that the image height changing after inserting images. |
Bug | SPIREXLS-4562 | Fixed the issue that the filters were not working when specifying a single row data range. |
Bug | SPIREXLS-4563 | Fixed the issue that java.lang.NullPointerException error being thrown during Excel to HTML conversion. |
Bug | SPIREXLS-4574 | Fixed the issue that "Invalid formula" error being thrown during Excel to PDF conversion. |
Bug | SPIREXLS-4576 | Fixed the issue that "String index out of range" error being thrown during Excel to PDF conversion. |
Bug | SPIREXLS-4577 | Fixed the issue that java.lang.NullPointerException error being thrown during Excel to PDF conversion. |