Spire.Doc 9.11.5已发布。该版本新增了SetColumnWidth方法设置表格列宽,以及新增UseNewEngine方法使用新引擎转换Word到PDF。此外还优化了调整设置表格单元格宽度的方法。详情请阅读以下内容。
新功能:
- 新增SetColumnWidth方法设置表格列宽。
table.SetColumnWidth(int columnIndex, float columnWidth, CellWidthType columnWidthType);
Document doc = new Document();
doc.LoadFromFile("input.docx");
doc.UseNewEngine = true;
doc.SaveToFile("result.pdf", FileFormat.PDF);
问题修复:
- 调整设置表格单元格宽度的方法。
//Old method
//tableCell.Width //Deprecated
//tableCell.CellWidthType //Deprecated
//New method
tableCell.SetCellWidth(float width, CellWidthType widthType);
获取Spire.Doc 9.11.5请点击: