This is the list of changelogs of Spire.Doc for Java New release and hotfix. You can get the detail information of each version's new features and bug solutions.
Download Spire.Doc for Java to start a free trial:
Version: 11.10.3
Category | ID | Description |
New feature | SPIREDOC-9912 | Synchronizes the AppendHorizonalLine() method to Java.
paragraph.appendHorizonalLine() |
New feature | - | Supports switching fonts that do not support drawing characters through the FontFallbackRule method in XML when converting to a non-flow layout document.
Document doc = new Document(); doc.loadFromFile(inputFile); doc.saveFontFallbackRuleSettings(outputFile_xml); doc.loadFontFallbackRuleSettings(outputFile_xml); doc.saveToFile(outputFile, FileFormat.PDF); Instructions:
If there is no XML available, first save an XML using saveFontFallbackRuleSettings and then manually edit the font replacement rules in the XML. The rules consist of three attributes: Ranges correspond to Unicode ranges for each character; FallbackFonts correspond to the font names for substitution; BaseFonts correspond to the font names for characters in the document. When editing the XML, it is important to note that the rules are searched from top to bottom for character matching. After editing the XML, load the rules using the loadFontFallbackRuleSettings method. |
Bug | SPIREDOC-9711 | Fixes the issue that the program threw "OutOfMemoryError" when using WPS rules to convert Word to PDF. |
Bug | SPIREDOC-9781 | Fixes the issue that the embedding of "楷体_GB2312" font failed. |
Bug | SPIREDOC-9842 | Fixes the issue that the Chinese characters garbled after converting RTF to PDF. |
Bug | SPIREDOC-9854 | Fixes the issue that the editable area was changed after saving the Word document. |
Bug | SPIREDOC-9860 | Fixes the issue that the editable area was changed after modifying Word documents. |
Bug | SPIREDOC-9862 | Fixes the issue that the result of setting image zoom size was incorrect. |
Bug | SPIREDOC-9871 | Fixes the issue that the table style was incorrect after converting Word to HTML. |
Bug | SPIREDOC-9880 | Fixes the issue that the font size was incorrect after converting HTML to Word. |
Bug | SPIREDOC-9891 | Fixes the issue that each value would be displayed twice after doing mail merging using executeWidthNestedRegion() method. |
Bug | SPIREDOC-9892 | Fixes the issue that the file became much larger after converting Word to OFD. |
Version: 11.9.5
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 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. |
Version: 11.8.1
Category | ID | Description |
New feature | SPIREDOC-4902 | Support setting the position of the gutter line.
Document doc = new Document(); doc.loadFromFile(inputFile); Section sec = doc.getSections().get(0); sec.getPageSetup().isTopGutter(false); sec.getPageSetup().setGutter(100f); doc.saveToFile(outputFile, FileFormat.Docx); |
New feature | SPIREDOC-7838 | Supports setting the spacing before/after paragraphs in line units.
paragraph.getFormat().setBeforeSpacingLines(5f); paragraph.getFormat().setAfterSpacingLines(15f); |
Bug | SPIREDOC-4094 | Fixed the issue that the generated table of contents was incorrect. |
Bug | SPIREDOC-8956 | Fixed the issue that saving Docx documents failed when using IBM jdk1.6. |
Bug | SPIREDOC-9117 SPIREDOC-9647 |
Fixed the issue that fonts were not embedded when converting Word to OFD. |
Bug | SPIREDOC-9135 | Fixed the issue that the program threw a java.lang.IllegalStateException exception when converting Word to PDF. |
Bug | SPIREDOC-9193 | Fixed the issue that table content was lost when converting Word to PDF. |
Bug | SPIREDOC-9245 | Fixed the issue that bookmarks cannot be retrieved after inserting section breaks. |
Bug | SPIREDOC-9282 | Fixed the issue that extra directory tags appeared when converting Word to HTML. |
Bug | SPIREDOC-9331 | Fixed the issue that the program threw a java.lang.ClassCastException exception when converting Word to PDF. |
Bug | SPIREDOC-9401 | Fixed the issue that unordered list markers were missing when converting Word to PDF. |
Bug | SPIREDOC-9444 | Fixed the issue that the position of footers was incorrect when converting Word to PDF. |
Bug | SPIREDOC-9459 | Fixed the issue that the table of contents update failed. |
Bug | SPIREDOC-9464 | Fixed the issue that pagination was inconsistent when converting Word to PDF. |
Bug | SPIREDOC-9481 | Fixed the issue that header content was inconsistent when converting Word to PDF. |
Bug | SPIREDOC-9519 | Fixed the issue that the layout of punctuation was inconsistent when converting Word to PDF. |
Bug | SPIREDOC-9530 | Fixed the issue that field text style settings did not take effect after updating fields. |
Bug | SPIREDOC-9532 | Fixed the issue that retrieving document information from RTF documents failed. |
Bug | SPIREDOC-9574 | Fixed the issue that character spacing was inconsistent after loading and saving the document as a new document. |
Bug | SPIREDOC-9582 | Fixed the issue that artistic font styles were inconsistent after loading and saving the document as a new document. |
Bug | SPIREDOC-9584 | Fixed the issue that the position of content was inconsistent when converting Word to images. |
Bug | SPIREDOC-9613 | Fixed the issue that the content was garbled when converting Word to PDF. |
Bug | SPIREDOC-9584 | Fixed the issue that content positioning is inconsistent when converting Word to images. |
Bug | SPIREDOC-9626 | Fixed the issue that decimal percentages were lost in pie charts when converting Word to images. |
Bug | SPIREDOC-9628 | Fixed the issue that the program threw a java.lang.NullPointerException exception when loading Doc documents. |
Bug | SPIREDOC-9645 | Fixed the issue that editable areas were not editable after replacing images in Docx documents. |
Bug | SPIREDOC-9687 | Fixed the issue that selected checkboxes were missing when converting Word to PDF. |
Bug | SPIREDOC-9719 | Fixed the issue that the table formatting was incorrect when converting Word to PDF. |
Version: 11.7.0
Category | ID | Description |
New feature | SPIREDOC-9004 | Supports the function to create a PrivateFontPath object in a stream format.
// Constructor PrivateFontPath(String fontName,InputStream fontStream); PrivateFontPath(String fontName,int fontStyle,InputStream fontStream); // getter setter setFontStream(InputStream value); getFontStream(); |
New feature | SPIREDOC-9423 | Supports the function to maintain consistent display of user information annotations after converting Word to PDF.
ToPdfParameterList parms = new ToPdfParameterList(); parms.useAuthorNameToDisplayCommentLabel(true); |
Bug | SPIREDOC-9044 | Fixes the issue that the pagination was inconsistent after converting Word to PDF. |
Bug | SPIREDOC-9053 | Fixes the issue that the table of contents not being updated after converting Word to PDF. |
Bug | SPIREDOC-9129 | Fixes the issue that the watermark was missing after loading a file and saving it as a new document |
Bug | SPIREDOC-9323 | Fixes the issue that the first-level headings lost after converting a Word document to PDF. |
Bug | SPIREDOC-9346 | Fixes the issue that the application threw an exception: "Index is less than 0 or more than or equal to the list count" when comparing Word documents. |
Bug | SPIREDOC-9347 | Fixes the issue that the bookmarks lost after converting Word to HTML and then back to Word. |
Bug | SPIREDOC-9382 | Fixes the issue that the application threw an exception: "An element with the same key already exists in the dictionary." when cloning a document. |
Bug | SPIREDOC-9386 | Fixes the issue that the indentation in paragraphs changed after converting HTML to Word. |
Bug | SPIREDOC-9431 | Fixes the issue that table of contents updating was incorrect after merging documents. |
Bug | SPIREDOC-9435 | Fixes the issue that the content was missing after converting Word to PDF |
Bug | SPIREDOC-9457 | Fixes the issue that the layout was inconsistent after converting Word to PDF. |
Bug | SPIREDOC-9462 | Fixes the issue that the document contained excessive blank paragraphs after accepting revisions. |
Bug | SPIREDOC-9500 | Fixes the issue that the application threw an exception: "No have this value 110" when loading DOC format files. |
Bug | SPIREDOC-9509 SPIREDOC-9527 |
Fixes the issue that the content was inconsistent after converting Word to PDF. |
Bug | SPIREDOC-9520 | Fixes the issue that the fonts changed after converting Word to PDF. |
Bug | SPIREDOC-9529 | Fixes the issue that the page number was incorrect after converting Word to PDF by using WPS rules. |
Version: 11.6.0
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. |
Version: 11.5.5
Category | ID | Description |
Bug | SPIREDOC-7626 | Fixes the issue that the content was incorrect after converting Word to OFD. |
Bug | SPIREDOC-8666 | Fixes the issue that the paging was inconsistent after converting DOC to DOCX. |
Bug | SPIREDOC-8670 | Fixes the issue that the content was incorrect after converting Word to PDF. |
Bug | SPIREDOC-8712 | Fixes the issue that the application threw "java. lang. OutOfMemoryError" exception when converting Word to PDF. |
Bug | SPIREDOC-8766 | Fixes the issue that the application threw an error "Attempted to read past the end of the stream" when loading documents. |
Bug | SPIREDOC-9030 | Fixes the issue that the document had extra blank pages in documents after converting DOC to DOCX. |
Bug | SPIREDOC-9064 | Fixes the issue that page layout was incorrect after after replacing text with images. |
Bug | SPIREDOC-9264 | Fixes the issue that the application threw "java.lang.NullPointerException" exception when replacing bookmark with table. |
Bug | SPIREDOC-9286 | Fixes the issue that the values in dropdown boxes was incorrect after converting RTF to PDF. |
Bug | SPIREDOC-9287 | Fixes the issue that the application threw "This is not a structured storage file" exception when converting Word to PDF. |
Bug | SPIREDOC-9290 | Fixes the issue that the application threw "java.lang.StackOverflow" exception when converting Word to PDF. |
Bug | SPIREDOC-9300 | Fixes the issue that the list number changed after the application calling getListText() method. |
Bug | SPIREDOC-9311 | Fixes the issue that the application threw "java.lang.ClassCastException" exception when loading documents. |
Bug | SPIREDOC-9317 | Fixes the issue that the file was incorrect after saving after saving as FileFormat.Docx_2016, FileFormat.Docx_2019. |
Bug | SPIREDOC-9327 | Fixes the issue that the application threw "X509CertImpl" exception when the application running in the IBM Websphere environment. |
Bug | SPIREDOC-9372 | Fixes the issue that the application threw "Unknown char: <" exception when loading documents. |
Bug | SPIREDOC-9390 | Fixes the issue that the bookmarks could not be fully retrieved. |
Version: 11.4.2
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. |
Version: 11.3.11
Category | ID | Description |
New feature | SPIREDOC-8859 | Supports modifying the revision time.
SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); String dateString = "2023/3/1 00:00:00"; Date date = formatter.parse(dateString); revison.setDateTime(date); |
Bug | SPIREDOC-8645 | Fixes the issue that the table content was incorrect when converting Word to PDF. |
Bug | SPIREDOC-8960 | Fixes the issue that there is extra whitespace when converting Word to PDF. |
Bug | SPIREDOC-8855 | Fixes the issue that the text display in SmartArt was incomplete when converting Word to PDF. |
Bug | SPIREDOC-8866 | Fixed the issue that SmartArt was missing when converting Word to PDF |
Bug | SPIREDOC-8928 | Fixes the issue that the table layout distorted when setting fixed column width |
Bug | SPIREDOC-8975 | Fixes the issue that the number of document pages was incorrect. |
Bug | SPIREDOC-8978 | Fixes the issue that the TOC style changed after updating |
Bug | SPIREDOC-9036 | Fixes the issue that the application threw” NullPointerException” when converting Word to PDF |
Bug | SPIREDOC-9037 | Fixes the issue that an error was reported when the result document was opened with MS Word after loading and saving as a new document. |
Bug | SPIREDOC-9056 | Fixes the issue that the document could not be edited after repeatedly setting ProtectionType.Allow_Only_Revisions. |
Bug | SPIREDOC-9085 | Fixes the issue that the line breaks were inconsistent when opening result document in MS Word after saving as new document |
Bug | SPIREDOC-9086 | Fixes the issue that the line break styles lost when converting RTF to PDF. |
Bug | SPIREDOC-9110 | Fixes the issue that the document format was inconsistent with the original document after cloning a section |
Bug | SPIREDOC-9138 | Fixes the issue that the content was inconsistent after converting RTF to Word. |
Version: 11.3.0
Category | ID | Description |
Bug | SPIREDOC-8858 | Fixes the issue that WPS tool viewing inconsistent line breaks when converting Word to PDF. |
Bug | SPIREDOC-8950 | Fixes the issue that paging inconsistency when converting Word to PDF. |
Bug | SPIREDOC-9011 | Fixes the issue that the program threw java.lang.NullPointerException when replacing bookmarks. |
Bug | SPIREDOC-9016 | Fixes the issue that incorrect display of Chinese symbols with WPS tool when converting Word to PDF. |
Bug | SPIREDOC-9028 | Fixes the issue that the program threw java.lang.ClassCastException when loading Word documents. |
Bug | SPIREDOC-9055 | Fixes the issue that no marks left for editing content revisions after setting ProtectionType.Allow_Only_Revisions. |
Version: 11.2.3
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. |