Spire.Doc for Java 11.1.1已发布。本次更新新增支持内容控件“内容被编辑后删除内容控件”的功能。同时,此版本增强了 Word 到 PDF 的转换功能。此外,该版本还修复了一些已知问题,如:修复了加载文档报错“Value (11) does not exist in the
新功能:
- 支持内容控件“内容被编辑后删除内容控件”的功能。
Document doc = new Document();
doc.loadFromFile("1.docx");
StructureTags structureTags = GetAllTags(doc);
List tagInlines = structureTags.getM_tagInlines();
for (int i = 0; i<tagInlines.size(); i++)
{
StructureDocumentTagInline std = tagInlines.get(i);
std.getSDTProperties().isTemporary(true);
}
List<StructureDocumentTag> tags = structureTags.getM_tags();
for (int i = 0; i<tags.size(); i++) {
StructureDocumentTag std = tags.get(i);
std.getSDTProperties().isTemporary(true);
}
List<StructureDocumentTagRow> rowtags = structureTags.getM_rowtags();
for (int i = 0; i<rowtags.size(); i++) {
StructureDocumentTagRow std = rowtags.get(i);
std.getSDTProperties().isTemporary(true);
}
List<StructureDocumentTagCell> celltags = structureTags.getM_celltags();
for (int i = 0; i<celltags.size(); i++) {
StructureDocumentTagCell std = celltags.get(i);
std.getSDTProperties().isTemporary(true);
}
doc.saveToFile("tags.docx",FileFormat.Docx_2013);
问题修复:
- 修复了转换Word到PDF表格边框丢失的问题。
- 修复了加载文档报错“Value (11) does not exist in the <CellAlign> enumeration”问题。
- 修复了springboot项目通过maven导入产品jar运行报错java.lang.IllegalArgumentException: No enum constant com.spire.doc.packages.sprzny.spr“的问题。
- 修复了获取文本框失败的问题。
- 修复了转换HTML到Word表格头部背景色丢失的问题。
- 修复了创建的引用域自动更新失败的问题。
- 修复了转换RTF到Word文字乱码的问题。
- 修复了加文本水印后文档打开失败的问题。
- 修复了设置VerticalAlignment.Top不生效的问题。
- 修复了加载文档时程序挂起的问题。
- 修复了转换doc到docx程序抛异常“Value cannot be null”的问题。
- 修复了合并文档时程序抛异常An element with the same key already exists in the dictionary的问题。
- 修复了转换Word到Pdf程序抛异常ArithmeticException的问题。
- 修复了转换Word到PDF数字编号等级不正确的问题。
- 修复了获取出的列表文本不正确的问题。
- 修复了获取出的超链接地址不完整的问题。
- 修复了转换Word到HTML空白缺失的问题。
- 修复了转换Word到PDF数字编号后面多出背景色的问题。
- 修复了转换Word到PDF文本框的边框样式不正确的问题。
- 修复了添加html字符串时程序报错Parameter 'emSize' 0.0 is invalid的问题。
- 修复了替换书签内容时程序抛NullPointerException的问题。
- 修复了替换书签内容后页眉的背景样式丢失的问题。
获取Spire.Doc for Java 11.1.1请点击: