HTML to PDF/RTF Java converter and tools › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › pd4ml.useTTF() create (but not delete) temporary files › Re: Re: pd4ml.useTTF() create (but not delete) temporary files
The temp files are implicitly created by JVM after each createFont(int, InputStream) call. After a font object is garbage collected, for some strange reason JVM does not delete its temp file. They are collectively deleted after JVM quits, but some of them are forgotten and remain in the temp directory until the host OS cleans up. We have found no way to force JVM to cleanup font temp files.
The recent PD4ML versions try to workaround the issue by a copying of needed font files to TEMP dir and pointing to them with createFont(int, File) API call. In the case JVM does not create extra .TMP files by its own.
Which PD4ML version do you use?