From bb120c51ecba1bb4a16224352a6e8f620fdff79f Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期五, 28 二月 2025 15:16:12 +0800
Subject: [PATCH] 清除控制台直接打印

---
 cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java |   29 -----------------------------
 1 files changed, 0 insertions(+), 29 deletions(-)

diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java b/cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java
index 3aa6f7b..819a5b9 100644
--- a/cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java
+++ b/cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java
@@ -95,33 +95,4 @@
         saveBatch(list);
     }
 
-    public String wordToPdf(String wordPath, String pdfPath) {
-        FileOutputStream os = null;
-        try {
-            InputStream is = new ClassPathResource("/lib/license.xml").getInputStream();
-            License license = new License();
-            license.setLicense(is);
-            if (!license.getIsLicensed()) {
-                System.out.println("License楠岃瘉涓嶉�氳繃...");
-                return null;
-            }
-            //鐢熸垚涓�涓┖鐨凱DF鏂囦欢
-            File file = new File(pdfPath.replace(".pdf", ".pdf"));
-            os = new FileOutputStream(file);
-            //瑕佽浆鎹㈢殑word鏂囦欢
-            com.aspose.words.Document doc = new com.aspose.words.Document(wordPath);
-            doc.save(os, SaveFormat.PDF);
-        } catch (Exception e) {
-            e.printStackTrace();
-        } finally {
-            if (os != null) {
-                try {
-                    os.close();
-                } catch (IOException e) {
-                    e.printStackTrace();
-                }
-            }
-        }
-        return null;
-    }
 }

--
Gitblit v1.9.3