We're pleased to announce the release of Spire.Doc for Java 14.7.4. This version adds the isSVG property to check whether a picture is an SVG image. It also fixes several issues related to Word document saving, comparison, cloning, and Word to PDF conversion. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New Feature | SPIREDOC-12004 | Added isSVG property support to check if a picture is an SVG.
DocPicture picture = (DocPicture) object;if (picture.isSVG()) {
byte[] svgBytes = picture.getImageBytes();
Files.write(Paths.get(outputFile), svgBytes);
}
|
| Bug Fix | SPIREDOC-11857 | Fixed the issue where saving a Word document took too long. |
| Bug Fix | SPIREDOC-11893 | Fixed the issue where a NullPointerException was thrown when comparing Word documents. |
| Bug Fix | SPIREDOC-11958 | Fixed the issue where content overlapped when converting Word to PDF. |
| Bug Fix | SPIREDOC-11961 | Fixed the issue where image text appeared garbled when converting Word to PDF. |
| Bug Fix | SPIREDOC-11979 | Fixed the issue where the layout was incorrect when converting Word to PDF. |
| Bug Fix | SPIREDOC-11981 | Fixed the issue where an ArgumentOutOfRangeException was thrown when converting Word to PDF. |
| Bug Fix | SPIREDOC-11983 | Fixed the issue where styles were not fully copied from a template to another document. |
| Bug Fix | SPIREDOC-11989 | Fixed the issue where a "Document element did not appear. Line 1, position 1" exception was thrown when loading a Word document. |
| Bug Fix | SPIREDOC-11993 | Fixed the issue where extra blank pages were added when cloning a document. |
| Bug Fix | SPIREDOC-11994 | Fixed the issue where a "String index out of range: 76" exception was thrown when comparing Word documents. |
| Bug Fix | SPIREDOC-11996 | Fixed the issue where the table format was incorrect when cloning sections. |
| Bug Fix | SPIREDOC-12005 | Fixed the issue where the rendering effect was incorrect when converting Word to PDF. |
Click the link below to download Spire.Doc for Java 14.7.4: