Spire.Doc for Java 11.6.0 supports setting the position of the binding line

2023-06-09 07:40:28

We are happy to announce the release of Spire.Doc for Java 11.6.0. This version supports setting the position of the binding line and the color of content controls. It also enhances the conversion from Word to PDF and OFD. Besides, some known issues are fixed in this version, such as the issue that extra blank paragraphs appeared after accepting revisions. More details are listed below.

Here is a list of changes made in this release

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.
Click the link to download Spire.Doc for Java 11.6.0: