We are delighted to announce the release of Spire.Doc for Java 12.7.17. This version supports embedding CSS and images when converting Word documents to HTML files in HTML Fixed format. Besides, it also enhances the conversion from DOCX to OFD, HTML, and PDF. Moreover, a lot of known issues are fixed successfully in this version, such as the issue that the orientation of the added image was not correct. More details are listed below.
Here is a list of changes made in this release
Category | ID | Description |
New feature | SPIREDOC-10687 | Supports embedding CSS and images when converting Word documents to HTML files in HTML Fixed format.
String inputFile = "1.docx"; String outputFile ="1.html"; Document doc = new Document(); doc.loadFromFile(inputFile); doc.getHtmlExportOptions().setCssStyleSheetType(CssStyleSheetType.Internal); doc.getHtmlExportOptions().setImageEmbedded(true); doc.saveToFile(outputFile, FileFormat.HtmlFixed); doc.dispose(); |
Bug | SPIREDOC-9829 SPIREDOC-10609 |
Fixes the issue that the orientation of added images was incorrect. |
Bug | SPIREDOC-10006 SPIREDOC-10636 SPIREDOC-10692 |
Fixes the issue that the size of OFD documents converted from Docx documents becomes bigger. |
Bug | SPIREDOC-10327 | Fixes the issue that watermarks in HTML documents converted from Docx documents were lost. |
Bug | SPIREDOC-10379 SPIREDOC-10509 SPIREDOC-10531 SPIREDOC-10650 |
Fixes an issue that content was lost after converting a Docx document to a PDF document. |
Bug | SPIREDOC-10591 | Fixes an issue that the editing area was lost after converting an XML document to a Doc document. |
Bug | SPIREDOC-10615 | Fixes the issue that the program threw an exception when converting Word to PDF under multi-threading. |
Bug | SPIREDOC-10623 | Fixes the issue that page numbers were formatted incorrectly after converting Docx documents to PDF documents. |
Bug | SPIREDOC-10627 | Fixes the issue that the program threw "The authentication or decryption has failed." error when converting Docx documents to PDF documents. |
Bug | SPIREDOC-10634 SPIREDOC-10701 |
Fixes the issue that the program threw an exception when converting Word to OFD under multi-threading. |
Bug | SPIREDOC-10670 | Fixes the issue that the text orientation changed after converting Docx documents to PDF documents. |
Bug | SPIREDOC-10685 SPIREDOC-10697 |
Fixes the issue that the page numbers of requests after the second time were lost after adding a table of contents in a Web project. |
Bug | SPIREDOC-10713 | Fixes the issue that font embedding failed when converting Docx documents to PDF documents. |
Click the link below to download Spire.Doc for Java 12.7.17: