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 =…