We are pleased to announce the release of Spire.Doc for Java 11.2.3. This version supports setting the sdtAppearance property for the content control. Besides, it enhances the conversion from Word to PDF. In addition, it fixes some known issues, such as the issue that the application threw "Unknown Source" error when updating the TableOfContents. More details are listed below.
Here is a list of changes made in this release
Category | ID | Description |
New feature |
SPIREDOC-8665 |
Supports setting the sdtAppearance property for the content control.
Document doc = ConvertUnit.GetNewEngineDocument(); doc.loadFromFile(inputFile); 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 Text: sdtProperties.setAppearance(SdtAppearance.Hidden); break; case Rich_Text: sdtProperties.setAppearance(SdtAppearance.BoundingBox); break; case Picture: sdtProperties.setAppearance(SdtAppearance.Tags); break; case Check_Box: sdtProperties.setAppearance(SdtAppearance.Default); break; } } } doc.saveToFile(outputFile, FileFormat.Docx); doc.dispose(); |
Bug | SPIREDOC-4055 | Fixes the issue that the application threw "Unknown Source" error when updating the TableOfContents. |
Bug | SPIREDOC-8658 | Fixes the issue that the application threw "Object reference not set to an instance of an object" when updating the fields. |
Bug | SPIREDOC-8759 | Fixes the issue that the application threw "NullPointerException" when converting to PDF. |
Bug | SPIREDOC-8765 SPIREDOC-8879 |
Fixes the issue that the application threw "RasterFormatException" when converting Word to HTML. |
Bug | SPIREDOC-8854 | Fixes the issue that some content displayed incorrectly after embedding the private fonts. |
Bug | SPIREDOC-8857 SPIREDOC-8893 |
Fixes the issue that the output effect was incorrect after accepting changes. |
Bug | SPIREDOC-8895 | Fixes the issue that it didn't take effect after overwriting an existing protected password. |
Bug | SPIREDOC-8912 | Fixes the issue that there was an error when opening the saved Word file by MS Word. |
Bug | SPIREDOC-8925 | Fixes the issue that the application threw "NullPointerException" when loading a XML file. |
Bug | SPIREDOC-8954 | Fixes the issue that the content format was incorrect after converting Word file to PDF. |
Bug | SPIREDOC-8983 | Fixes the issue that the application threw "IllegalArgumentException" when setting the VerticalAlignment for a picture. |
Click the link to download Spire.Doc for Java 11.2.3: