|
|
@ -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(); |
|
|
|