还原代码

This commit is contained in:
zhangqinbin
2022-04-22 17:34:43 +08:00
parent 82ba5c1568
commit 122cc84c8b

View File

@ -124,20 +124,16 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService {
}
File f = new File(path + "merged.pdf");
FileOutputStream fos = null;
try {
FontSettings.getDefaultInstance().setFontsFolder(fontAddress, true);
fos = new FileOutputStream(f);
try (FileOutputStream fos = new FileOutputStream(f);) {
com.aspose.words.Document doc = new com.aspose.words.Document(path + "merged.docx");
doc.save(fos, SaveFormat.PDF);
fos.flush();
} catch (Exception e) {
log.info(ExceptionUtil.stacktraceToString(e));
} finally {
IOUtils.closeQuietly(source);
IOUtils.closeQuietly(addObj);
IOUtils.closeQuietly(fos);
source.close();
addObj.close();
}
long l1 = System.currentTimeMillis();