While trying to generate docx from pdf , it is creating temp files in C: drive :- temp folder(see attached image)
I’m trying to generate docx from pdf using Document | Aspose.PDF for Java API Reference
Following is the code snippet :
Java tracker blocks 20 of the last used temp files and does not allow to delete them during process.
Also, notice please, that method: MemoryCleaner.clearAllTempFiles(); - deletes only files from temp directory that placed in the sub-folder “aspose_pdf” or have name that starts as “aspose_”. And we strongly recommend that you do not clear temporary files during the process when converting any document, because JVM may crash java process.
The process must be completed and a cleaner must be started before the conversion of a new document begins.
You may configure separate temp folder for Aspose process adding the property before starting main code:
If used memory stream to hold font data, java will save them in temp folder anyway with mask: “+~JF *** .tmp” in temp folder. We are using mask “aspose_ *** .tmp” to separate temp files generated by Aspose.PDF.