From 071e4151fc5f0f7f4b4ac9e7091bc61db26cccab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E5=BA=86=E5=90=89?= <51312040@qq.com> Date: Fri, 20 Aug 2021 17:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BF=9D=E5=AD=98=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ExpertSignatureServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/signature/service/impl/ExpertSignatureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/signature/service/impl/ExpertSignatureServiceImpl.java index 2c38b14..8d44059 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/signature/service/impl/ExpertSignatureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/signature/service/impl/ExpertSignatureServiceImpl.java @@ -106,7 +106,7 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService { } //保存合并后的文档 - d1.saveToFile(path + "/merged.docx", FileFormat.Docx_2010); + d1.saveToFile(path + "merged.docx", FileFormat.Docx_2010); //转为pdf long l = System.currentTimeMillis(); @@ -114,11 +114,11 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService { return null; } - File f = new File(path + "/merged.pdf"); + File f = new File(path + "merged.pdf"); FileOutputStream fos = new FileOutputStream(f); try { - com.aspose.words.Document doc = new com.aspose.words.Document(path + "/merged.docx"); + com.aspose.words.Document doc = new com.aspose.words.Document(path + "merged.docx"); doc.save(fos, SaveFormat.PDF); } catch (Exception e) { e.printStackTrace(); @@ -187,7 +187,7 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService { XWPFTemplate template = XWPFTemplate.compile(file).render(all); FileInputStream fis = null; try { - String docPath = path + "/expertSignature.docx"; + String docPath = path + "expertSignature.docx"; template.writeToFile(docPath); fis = new FileInputStream(new File(docPath));