Free Support Forum -

Using PdfFileEditor.concatenate is leaving temporary files behind


I’m using PdfFileEditor.concatenate(InputStream[],OutputStream) to concatenate a number of pdf files taken from an Oracle database. This is leaving files behind in the windows temp folder or the users temp folder.

They look like this.


At no point am I writing or reading the file system directly.

Why are these files left behind? If they have to be left behind can I set the directory. I tried using Settings.setTemporaryDirectory but it does not write this files there.

I’m using aspose-pdf-kit-4.4.0.jar


Hi Anthony,

Thanks for using our products and sorry for the delayed response.

have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFKITJAVA-33267. We
will investigate this issue in details and will keep you updated on the status
of a correction.

apologize for your inconvenience.