Spire.Doc for Java 3.3.0 现已发布。该版本支持设置对角线表格边框和装订线。除此之外,一些在 Word 转 SVG/PDF,操作和保存文档时出现的问题也得以成功解决。详情见下文。
新功能:
- 支持了设置对角线表格边框。
Document doc = new Document();
Section section = doc.addSection();
Table oTable = section.addTable(true);
section.addParagraph();
oTable.resetCells(10, 3);
oTable.getTableFormat().getPaddings().setTop(10);
oTable.getTableFormat().getPaddings().setBottom(10);
oTable.getTableFormat().setHorizontalAlignment(RowAlignment.Center);
oTable.getLastCell().getCellFormat().getBorders().getDiagonalUp().setBorderType(BorderStyle.Single);
oTable.getFirstRow().getCells().get(0).getCellFormat().getBorders().getDiagonalDown().setBorderType(BorderStyle.Double);
doc.saveToFile(outputFile);
Section section = document.getSections().get(0);
section.getPageSetup().setGutter(100f);
问题修复:
- 修复了当一个项目中同时使用 spire.office.jar 和 crimson.jar 时程序抛出异常 java.lang.AbstractMethodError。
- 修复了更新内容目录后,目录内容不正确的问题。
- 修复了 Word 转 SVG 程序抛异常 StackOverflowError。
- 修复了插入的 PDF OLE 对象不能打开。
- 修复了 Word 转 PDF 内容不正确。
- 修复了 Word 转 PDF 抛异常 java.lang.NullPointerException。
- 修复了 Word 转 PDF 抛异常 java.lang.StackOverflowError。
- 修复了加载文档抛异常 java.lang.IllegalStateException。
- 修复了移除分页符保存文档失败的问题。
获取Spire.Doc for Java 3.3.0,请点击: