News Category

Spire.Office for Java 7.9.9 is released

2022-09-30 07:19:53

We are excited to announce the release of Spire.Office for Java 7.9.9. In this version, Spire.Doc for Java supports word level comparison when comparing Word documents; Spire.Presentation supports adding MathML equations and selecting the print range in the Print dialog box. 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.9.9:

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New feature SPIREDOC-7817 Supports word level comparison when comparing Word documents.
Document doc1 = new Document();
doc1.loadFromFile(folder + "a.docx");
Document doc2 = new Document();
doc2.loadFromFile(folder + "b.docx");
CompareOptions options = new CompareOptions();
options.setLevel(ComparisonLevel.Word);
doc1.compare(doc2, "E-iceblue",options);
doc1.saveToFile(result, FileFormat.Docx);
Bug SPIREDOC-7268 Fixes the issue that setting table row height to auto type did not work when saving to DOC format documents.
Bug SPIREDOC- 7835 Fixes the issue that TOC contents were not aligned after updating TOC(table of contents).
Bug SPIREDOC-8018 Fixes the issue that the table layout was incorrect when converting Word to PDF.
Bug SPIREDOC-8038 Fixes the issue that the total page count was displayed incorrectly when converting Word to PDF.
Bug SPIREDOC-8092 Fixes the issue that the embedded document could not be opened when clicking on the image displayed by the OLE object after adding an OLE object using OleLinkType.Link.
Bug SPIREDOC-8095 Fixes the issue that the page numbers were not displayed correctly after updating TOC(table of contents).
Bug SPIREDOC-8098 Fixes the issue that setting case insensitivity did not work when finding text via regex.
Bug SPIREDOC-8162 Fixes the issue that the update directory program throws NullPointerException.
Bug SPIREDOC-8190 Fixes the issue that the text wrapping was incorrect when converting Word to PDF
Bug SPIREDOC-8199 Fixes the issue that the rotation angle of the watermark was incorrect when converting Word to PDF.
Bug SPIREDOC-8200 Fixes the issue that the program threw an error (Argument width[0] or height[0] cannot be less or equal to zero) when converting Word to PDF.
Bug SPIREDOC-8231 Fixes the issue that The table did not span pages correctly when converting Word to PDF.
Bug SPIREDOC-8273 Fixes the issue that the program threw an exception (Error reading WMF metafile) when loading document.
Bug SPIREDOC-8282 Fixes the issue that the content layout was incorrect when converting Word to PDF
Bug SPIREDOC-8285 Fixes the issue that the file format of docm was recognized as docx.
Bug SPIREDOC-8303 Fixes the issue that the result of detecting whether a file of docm was encrypted was incorrect.
Bug SPIREDOC-8369 Fixes the issue that the program threw an exception (GC overhead limit exceeded) when converting Word to PDF.

Spire.Presentation for Java

Category ID Description
New feature SPIREPPT-2044 Supports adding MathML equations.
Presentation ppt = new Presentation();
String mathMLCode="<mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\" xmlns:m=\"http://schemas.openxmlformats.org/officeDocument/2006/math\">" + "<mml:msup><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>+</mml:mo><mml:msqrt><mml:msup><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:msqrt><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:math>";
IAutoShape shape=ppt.getSlides().get(0).getShapes().appendShape(ShapeType.RECTANGLE, new Rectangle2D.Float(30,100,400,30));
shape.getTextFrame().getParagraphs().clear();
ParagraphEx tp=shape.getTextFrame().getParagraphs().addParagraphFromMathMLCode(mathMLCode);
ppt.saveToFile(outputFile, FileFormat.PDF);
ppt.dispose();
New feature SPIREPPT-2054 Supports selecting the print range in the Print dialog box.
  Presentation ppt = new Presentation();
        ppt.loadFromFile("C:\\1.pptx");
        PrinterJob printerJob=PrinterJob.getPrinterJob();
        printerJob.setPrintable(ppt);
        printerJob.printDialog();
        printerJob.print();
        ppt.dispose();
Bug SPIREPPT-2036 Fixes the issue that the content was cropped when converting PowerPoint to PDF with A4 size.
Bug SPIREPPT-2053 Fixes the issue that the gradient disappeared when converting PowerPoint to SVG.
Bug SPIREPPT-2055 Fixes the issue that the application threw NullPointerException when merging PowerPoint files.
Bug SPIREPPT-2056 Fixes the issue that the application threw ArrayIndexOutOfBoundsException when loading a PowerPoint file.
Bug SPIREPPT-2055 Fixes the issue that the application threw NullPointerException when splitting a PowerPoint file.