close final PDDocument

This commit is contained in:
Timo 2021-04-17 09:18:01 +03:00
parent 169ab20351
commit 8112f2035a

View File

@ -196,6 +196,8 @@ public class PdfSegmentationService {
// This can be improved an done in one pass, but it's complicated to do right away
postProcessSections(pdDocument, document.getSectionText());
IOUtils.close(pdDocument);
tempFile.delete();
return document;