技术栈:jdk21 + spring boot 3.2.5 + aspose-words-21.5.0-jdk17
转换代码:
public static boolean doc2pdf(String inPath, String outPath) {
File file = new File(outPath);
try (FileOutputStream os = new FileOutputSt…...您需要使用此代码才能得到正确的结果: LoadOptions loadOptions = new LoadOptions(); loadOptions...Document("Table-1.docx", loadOptions); doc.save("output.pdf");...