I have a servlet that does the following:
- User calls the servlet
- Servlet code calls a web service to download a PDF file from an Adobe Live Cycle server.
- Saves that PDF to a temp file.
- Calls ps2pdf14 to convert that PDF to an ancient PDF 1.4 version (which creates a second temporary file)
- Returns the contents of file2 as the response
What is the best way to cleanup these files?
Batch process?
Any ideas?