20220315-bugs
This commit is contained in:
@ -125,20 +125,18 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService {
|
||||
|
||||
File f = new File(path + "merged.pdf");
|
||||
FileOutputStream fos = null;
|
||||
FontSettings.getDefaultInstance().setFontsFolder(fontAddress, true);
|
||||
try {
|
||||
FontSettings.getDefaultInstance().setFontsFolder(fontAddress, true);
|
||||
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 {
|
||||
source.close();
|
||||
addObj.close();
|
||||
if (fos != null) {
|
||||
fos.flush();
|
||||
fos.close();
|
||||
}
|
||||
IOUtils.closeQuietly(source);
|
||||
IOUtils.closeQuietly(addObj);
|
||||
IOUtils.closeQuietly(fos);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user