Browse Source

word导出PDF格式丢失,更换组件导出

anderx 5 months ago
parent
commit
fb8c4a7742

+ 1 - 1
src/main/java/com/goafanti/common/controller/PublicController.java

@@ -1035,7 +1035,7 @@ public class PublicController extends CertifyApiController {
 	public Result mergeDocumentsToPdf(HttpServletResponse  response) throws DocumentException, IOException {
 		// 转换Word为PDF文件
 //		PDFUtils.convertWordToPDF("E:/4.docx", "E:/4-PDF.pdf");
-		PDFUtils.newConvertWordToPDF("E:/tmp/4.docx", "E:/tmp/4-PDF.pdf");
+		PDFUtils.newConvertWordToPDF("E:/tmp/0814.docx", "E:/tmp/0814-PDF.pdf");
 //		PDFUtils.convertXlsxToPDF("E:/tmp/0811.xlsx", "E:/tmp/0811-PDF.pdf");
 //		List<String> list = Arrays.asList(
 //				"E:/tmp/4-PDF.pdf",