Spire.Doc for Java 10.10.7 supports setting Word document grid properties

2022-10-27 07:41:29

We are excited to announce the release of Spire.Doc for Java 10.10.7. This version supports setting Word document grid properties and determining whether Docm files are encrypted by stream. Besides, it enhances the conversion from Word to PDF, HTML to Word, Word to HTML, and Docm to Docx. In addition, it fixes some known issues, such as the issue that the content format was inconsistent after splitting documents and the issue that the content format was incorrect after accepting revisions. More details are listed below.

Here is a list of changes made in this release

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