From 314ccc3fbb5b4cb1be4a77bc107a0ca1a2b2f0a3 Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期六, 15 三月 2025 10:37:31 +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