文档生成添加 11.26

master
zhc077 14 hours ago
parent 5a5f89f4df
commit 8f7a3482e1
  1. BIN
      jeecg-boot/jeecg-module-demo/src/main/resources/static/word/yiJianModel.docx
  2. 12
      jeecg-boot/jeecg-module-system/jeecg-system-start/src/test/java/org/jeecg/modules/word/WordExportUtil_test.java

@ -86,8 +86,10 @@ public class WordExportUtil_test {
@Test @Test
public void test3() { public void test3() {
String wordPath = "C:\\Users\\YX\\Documents\\2025黄淮学院工程技术研究中心1121.docx"; // String wordPath = "C:\\Users\\YX\\Documents\\2025黄淮学院工程技术研究中心1121.docx";
String wordPath2 = "C:\\Users\\YX\\Documents\\copy1121.docx"; String wordPath = "C:\\Users\\YX\\Documents\\WeChat Files\\wxid_5z79fdp20li121\\FileStorage\\File\\2024-11\\基于多智能体的中药丸剂数字孪生生产线关键技术研究-全文.docx";
String wordPath2 = "C:\\Users\\YX\\Documents\\WeChat Files\\wxid_5z79fdp20li121\\FileStorage\\File\\2024-11\\基于多智能体的中药丸剂数字孪生生产线关键技术研究-全文.docx";
// String wordPath2 = "C:\\Users\\YX\\Documents\\copy1121.docx";
// String wordPath2 = "D:\\model4word\\pdf\\2025黄淮学院工程技术研究中心1121.docx"; // String wordPath2 = "D:\\model4word\\pdf\\2025黄淮学院工程技术研究中心1121.docx";
// String wordPath2 = "C:\\Users\\YX\\Documents\\00.docx"; // String wordPath2 = "C:\\Users\\YX\\Documents\\00.docx";
String padPath = "C:\\Users\\YX\\Documents\\1_1.pdf"; String padPath = "C:\\Users\\YX\\Documents\\1_1.pdf";
@ -95,9 +97,9 @@ public class WordExportUtil_test {
// String padPath2 = "C:\\Users\\YX\\Documents\\00.pdf"; // String padPath2 = "C:\\Users\\YX\\Documents\\00.pdf";
try { try {
// FileUtils.convertDocxToPdf(wordPath, padPath); FileUtils.convertDocxToPdf(wordPath, padPath);
FileUtils.convertDocx2Pdf(wordPath, padPath); FileUtils.convertDocxToPdf(wordPath2, padPath2);
FileUtils.convertDocx2Pdf(wordPath2, padPath2); // FileUtils.convertDocx2Pdf(wordPath, padPath);
// FileUtils.convertDocx2Pdf(wordPath, padPath2); // FileUtils.convertDocx2Pdf(wordPath, padPath2);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

Loading…
Cancel
Save