main
黄海 8 months ago
parent e115ffd712
commit fdd74dd334

@ -40,7 +40,6 @@ if __name__ == '__main__':
if file.endswith('.docx.docx'):
# 完整的路径名称
docPath = os.path.join(workingPath, file)
docPath = docPath.replace('.docx.docx', '.docx')
print("文件名有误,已修复:" + docPath)
os.rename(docPath, docPath.replace('.docx.docx', '.docx'))

@ -27,7 +27,7 @@ public class C9_Test {
ReadDocxUtil ru = new ReadDocxUtil();
//判断是否为docx文件
//读取文件
String inputUrl = "c:/b.docx";
String inputUrl = "D:\\dsWork\\YunNanDsBase\\Doc\\全省及州市县区人口与教育报告集20241023\\16个州市报告2022\\分析报告20240510\\西双版纳州人口变化及其对教育的影响20240420.docx";
InputStream is = new FileInputStream(inputUrl);
ZipSecureFile.setMinInflateRatio(-1.0d);
XWPFDocument doc = new XWPFDocument(is);

Loading…
Cancel
Save