制度手册xml正文解析无编号问题处理

This commit is contained in:
lihongyu 2022-11-06 06:19:51 +08:00
parent 84a27d589a
commit 75480f3fb8

View File

@ -225,19 +225,16 @@ public class Report1Gener {
if (upfileModel.getFileName().contains(".xml")) {
if (dcProfile != null) {
dcContextpdf = new DCContext(userContext, dcProfile, CoEConstant.APP_ID, upfileModel.getPl_uuid(), upfileModel.getShape_uuid(), upfileModel.getFileName());
/*
* String path = dcContextpdf.getPath(); String fileName =
* dcContextpdf.getFileName(); //创建实例加载doc测试文档 com.spire.doc.Document docs =
* new com.spire.doc.Document(); docs.loadFromFile("/"+path+fileName);
* //保存为xml格式
* //nas/awsinst/doccenter/com.actionsoft.apps.coe.pal/COE_Upfile/03e55104-3ac6-
* 4298-8a9f-6d1c03cad06b/obj_2ebe57d0f9b84bdeb7cf697945d3c5ab/
* 液态奶事业部食品安全委员会运行管理规定.doc String substring = fileName.substring(0,
* fileName.lastIndexOf(".xml"));
* docs.saveToFile("/"+path+substring+".xml",FileFormat.Word_Xml); dcContextpdf
* = new DCContext(userContext, dcProfile, CoEConstant.APP_ID,
* upfileModel.getPl_uuid(), upfileModel.getShape_uuid(), substring+".xml");
*/
String path = dcContextpdf.getPath(); String fileName =
dcContextpdf.getFileName(); //创建实例加载doc测试文档
com.spire.doc.Document docs = new com.spire.doc.Document(); docs.loadFromFile("/"+path+fileName);
//保存为xml格式
//nas/awsinst/doccenter/com.actionsoft.apps.coe.pal/COE_Upfile/03e55104-3ac6-4298-8a9f-6d1c03cad06b/obj_2ebe57d0f9b84bdeb7cf697945d3c5ab/ 液态奶事业部食品安全委员会运行管理规定.doc
String substring = fileName.substring(0, fileName.lastIndexOf(".xml"));
docs.saveToFile("/"+path+substring+".xml",FileFormat.Word_ML);
dcContextpdf = new DCContext(userContext, dcProfile, CoEConstant.APP_ID,
upfileModel.getPl_uuid(), upfileModel.getShape_uuid(), substring+".xml");
break;
}
}