I have the following java code:
PdfFileEditor pdfEditor = new PdfFileEditor();
pdfEditor.setOptimizeSize(true);
pdfEditor.setCloseConcatenatedStreams(true);
pdfEditor.concatenate((String[]) pdfs.toArray(), mergedPdfFileLocation);
The code works and concatenates the pdfs in the Array into a single Merged PDF. However, after this is complete, I can’t remove the original PDFs that were concatenated together. When I try deleting them, I receive the following message:
2018-10-04_9-27-47.jpg (39.6 KB)
It looks like the PdfEditor Object is keeping the stream open after concatenation? Is there any way I can close each stream so the pdfs can be removed?
Any ideas would be greatly appreciated.
Thanks,
Brandon