Spire.Office for Java 8.6.0 is released

2023-06-09 07:52:42

We are excited to announce the release of Spire.Office for Java 8.6.0. In this version, Spire.Doc for Java supports setting the position of the binding line; Spire.XLS for Java enhances the conversion from Excel to PDF and images. Moreover, many known issues are fixed in this version. More details are listed below.

Click the link to download Spire.Office for Java 8.6.0:

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New feature SPIREDOC-4902 Supports setting the position of the binding line.
section.getPageSetup().isTopGutter(boolean value);
New feature SPIREDOC-9054 The mailMerge.executeWidthRegion() method of the mail merge field supports loading xml files from streams.
document.getMailMerge().executeWidthRegion(InputStream stream);
New feature SPIREDOC-9393 Supports setting the color of content controls.
for (Object docObj : doc.getSections().get(0).getBody().getChildObjects()) {
    if (docObj instanceof StructureDocumentTag) {
        DocumentObject Obj = (DocumentObject) docObj;
        SDTProperties sdtProperties = ((StructureDocumentTag) Obj).getSDTProperties();
        switch (sdtProperties.getSDTType()) {
            case Rich_Text:
                sdtProperties.setColor(Color.ORANGE);
                break;
            case Text:
                sdtProperties.setColor(Color.green);
                break;
        }
     }
  }
Bug SPIREDOC-9191 Fixes the issue that content was lost after converting Word to PDF.
Bug SPIREDOC-9340 Fixes the issue that updating page numbers in the table of contents did not work.
Bug SPIREDOC-9348 Fixes the issue that images were cropped after converting Word to PDF.
Bug SPIREDOC-9380 Fixes the issue that line breaks were incorrect after converting Word to OFD.
Bug SPIREDOC-9383 Fixes the issue that the program threw an exception UnsupportedOperationException when converting Word to PDF.
Bug SPIREDOC-9384 Fixes the issue that extra blank paragraphs appeared after accepting revisions.

Spire.XLS for Java

Category ID Description
Bug SPIREXLS-4611 Fixes the issue that the font effects were inconsistent when converting Excel to images.
Bug SPIREXLS-4639 Fixes the issue that the superscript and subscript format was lost when converting Excel to images.
Bug SPIREXLS-4642 Fixes the issue that the horizontal coordinate of the chart changed after adding an image watermark.
Bug SPIREXLS-4650 Fixes the issue that the program hangs when loading Excel documents.
Bug SPIREXLS-4669 Fixes the issue that setting the background color of the pivot table column name field failed.
Bug SPIREXLS-4671 Fixes the issue that the document data lost after adding an image watermark.
Bug SPIREXLS-4679 Fixes the issue that the memory overflow exception was thrown when converting Excel to PDF.
Bug SPIREXLS-4680 Fixes the issue that the decimal place retention in numeric charts was inconsistent when converting them to images.
Bug SPIREXLS-4682 Fixes the issue that the program threw java.lang.ClassCastException exception when loading an Excel document.
Bug SPIREXLS-4685 Fixes the issue that the result file failed to open after adding the LOG function.
Bug SPIREXLS-4687 Fixes the issue that the style changed when loading and saving an et format file.
Bug SPIREXLS-4688 Fixes the issue that the chart coordinate axis format changed when loading and saving an et format file.
Bug SPIREXLS-4736 Fixes the issue that the program threw java.lang.ClassFormatError exception when converting Excel to PDF.