We are excited to announce the release of Spire.Office for Java 7.10.4. In this version, Spire.Doc for Java supports setting Word document grid properties and determining whether Docm files are encrypted by stream; Spire.PDF for Java enhances the conversion from PDF to image; Spire.XLS for Java enhances the conversion from Excel to PDF; Spire.Presentation for Java enhances the conversion from PowerPoint to PDF, SVG, and images. Besides, some known issues are successfully fixed in this version. More details are listed below.
Click the link to download Spire.Office for Java 7.10.4:
Here is a list of changes made in this release
Spire.Doc for Java
Category | ID | Description |
New feature | SPIREDOC-3686 | Supports setting Word document grid properties.
doc.loadFromFile("input.docx"); for (GridPitchType type : GridPitchType.values()) { for (Object sec : doc.getSections()) { ((Section) sec).getPageSetup().setGridType(type); ((Section) sec).getPageSetup().setLinesPerPage(15); } doc.saveToFile("output.docx", FileFormat.Docx); } doc.close(); |
New feature | SPIREDOC-8320 | Supports determining whether Docm files are encrypted by stream.
Document document = new Document(); FileInputStream inStream = new FileInputStream("data/WordWithMacro1.docm"); boolean isPwd = Document.isPassWordProtected(inStream); |
Bug | SPIREDOC-7739 | Fixes the issue that the position of the horizontal line was incorrect when converting Word to PDF. |
Bug | SPIREDOC-8030 | Fixes the issue that the content format was inconsistent after splitting documents. |
Bug | SPIREDOC-8073 | Fixes the issue that the vertical text was changed to horizontal when converting Word to PDF. |
Bug | SPIREDOC-8074 | Fixes the issue that the images were missing when converting Html to Word. |
Bug | SPIREDOC-8081 | Fixes the issue that the pagination was incorrect when converting Word to PDF. |
Bug | SPIREDOC-8240 | Fixes the issue that the border style of cells was missing when adding new row via row.addcell (true) method. |
Bug | SPIREDOC-8241 | Fixes the issue that the mail merge field was not updated correctly. |
Bug | SPIREDOC-8274 | Fixes the issue that the content indentation was changed when converting Word to PDF. |
Bug | SPIREDOC-8290 | Fixes the issue that there were extra horizontal lines when converting Word to PDF. |
Bug | SPIREDOC-8311 SPIREDOC-8411 |
Fixes the issue that the image position was incorrect when converting Word to PDF. |
Bug | SPIREDOC-8323 | Fixes the issue that the content format was incorrect after accepting revisions. |
Bug | SPIREDOC-8333 | Fixes the issue that it failed to delete files using files.deleteifExists after calling isPassWordProtected. |
Bug | SPIREDOC-8334 | Fixes the issue that the application threw "Cannot detect current file type" exception when determining whether a document is encrypted. |
Bug | SPIREDOC-8335 | Fixes the issue that it failed to open the resulting document after merging documents. |
Bug | SPIREDOC-8337 | Fixes the issue that the program threw an exception when replacing bookmark contents in multiple threads. |
Bug | SPIREDOC-8338 | Fixes the issue that the image was not displayed when converting HTML to Word. |
Bug | SPIREDOC-8339 | Fixes the issue that the discrepancies in document tables were not displayed after comparing documents. |
Bug | SPIREDOC-8342 | Fixes the issue that the differences was not showed up in the highlighted area of the result document after document comparison. |
Bug | SPIREDOC-8343 | Fixes the issue that the node storing information in custom.xml changed from vt:lpwstr to vt:lpstr after converting Docm to Docx. |
Bug | SPIREDOC-8397 | Fixes the issue that the text spacing was inconsistent when converting Word to PDF. |
Bug | SPIREDOC-8407 | Fixes the issue that the table format was incorrect when converting Word to PDF. |
Bug | SPIREDOC-8411 | Fixes the issue that the program threw an exception "unpected cross ax" when updating TOC. |
Bug | SPIREDOC-8414 | Fixes the issue that the program threw "IllegalArgumentException" when cloning elements. |
Bug | SPIREDOC-8417 | Fixes the issue that Japanese and Korean characters were not displayed when opening the converted PDF from Word in browser. |
Bug | SPIREDOC-8469 | Fixes the issue that the content was incorrect when converting Word to HTML. |
Bug | SPIREDOC-8493 | Fixes the issue that the added custom properties with pure English letters (or plus numbers) could not be seen when opening result file with WPS Office. |
Spire.PDF for Java
Category | ID | Description |
Bug | SPIREPDF-4981 | Fixes the issue that when setting DPI to 200%, the image location was incorrect after converting PDF to image. |
Bug | SPIREPDF-5397 | Fixes the issue that some content was still colored after converting PDF to grayscale. |
Bug | SPIREPDF-5487 | Fixes the issue that the application threw "java.lang.NullPointerException" when finding keywords in PDF. |
Bug | SPIREPDF-5537 | Fixes the issue that the application threw "java.lang.NullPointerException" when converting PDF to image. |
Bug | SPIREPDF-5538 | Fixes the issue that the content was messy after converting PDF to image. |
Spire.XLS for Java
Category | ID | Description |
Bug | SPIREXLS-4107 | Fixes the issue that the last modified date obtained was incorrect. |
Bug | SPIREXLS-4129 | Fixes the issue that the result file failed to open when converting Excel to XPS. |
Bug | SPIREXLS-4139 | Fixes the issue that the row height changed when converting Excel to PDF. |
Bug | SPIREXLS-4149 | Fixes the issue that the application threw ArrayIndexOutOfBoundsException when converting Excel to PDF |
Bug | SPIREXLS-4153 | Fixes the issue that the font was embedded unsuccessfully when converting Excel to PDF on Linux |
Bug | SPIREXLS-4156 | Fixes the issue that the evaluation warning watermark was printed incompletely when converting Excel to images. |
Spire. Presentatio for Java
Category | ID | Description |
Bug | SPIREPPT-2057 | Fixes the issue that the output PDF file was damaged after converting an encrypted PowerPoint file to PDF. |
Bug | SPIREPPT-2070 | Fixes the issue that the shape was changed after converting a PowerPoint file to SVG. |
Bug | SPIREPPT-2076 | Fixes the issue that the text of the output file was overlapped after converting a PowerPoint file to PDF. |
Bug | SPIREPPT-2084 | Fixes the issue that the content was incorrect after converting a PowerPoint file to images. |
Bug | SPIREPPT-2087 | Fixes the issue that the application threw "Cannot find table 'loca' in the font file." when converting PowerPoint to PDF. |
Bug | SPIREPPT-2088 | Fixes the issue that the application threw "NullPointerException" when loading a PowerPoint file. |