Free Support Forum - aspose.com

Temporary files

I have over 500mb in temporary files in my temp folder that were created by Aspose .Words. These files are graphics files. Why is Aspose leaving these temp files rather than deeleting them? This causes problems for large-scale deployments.

If you are doing conversion to PDF, then you need to set

pdf.IsImagesInXmlDeleteNeeded = true;

as shown here http://www.aspose.com/Products/Aspose.Words/Api/ConvertingtoPDF.html

If you are doing conversion to HTML, then you need to delete image files from time to time. They are not temporary. They are just exported there. See SaveOptions.ExportImagesFolder and related properties.