We are unable to use the provided code in its current state to replicate the problem due to missing dependencies. Could you kindly provide a complete console application that we can use to continue our investigation? Additionally, it would be highly appreciated if you could share a screencast or a brief video that explains the steps required to reproduce the issue.
@atir.tahir
I have attached the complete console application source.
Please compile and add license file “GroupDocs.Conversion.NET.lic” to “DLL\GroupDocs” folder path.
Then put some file into C:\Temp\input and run on console with the following sample command line.
ViewerHtmlExporter.exe “C:\Temp\input” “C:\Temp” “output” 0 “UTF-8”
ViewerHtmlExporter.zip (164.6 KB)
@atir.tahir
Does the following folder not exist in the verification environment of GroupDocs Conversions .NET product?
C:\Users[username]\AppData\Local\Temp\CustomTempFonts
@huunamnguyen2713
We don’t get a temporary folder with the Conversion API. However, we have opened the following new ticket(s) in our internal issue tracking system and will investigate the provided application & deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CONVERSIONNET-6307
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@atir.tahir
Thank for opening new ticket.
I found that same problem fixed in Aspose.PDF for .NET 23.5.
https://forum.aspose.com/t/customtempfonts/250011/32
I hope GroupDocs fixes it soon too.
@atir.tahir
Thank for your investigating.
I have attached one of the multiple pdf files that can be reproduced here
CustomTempFonts folder has been created when converting a pdf file to html.
TempFonts may also be created.
After converting a 7Mb pdf file to html, there may be a temporary folder of about 1Gb remaining(We have reproduced).
Test_Creating_CustomTempFonts_Folder.pdf (6.9 KB)
image.png (18.0 KB)
Thank you for providing these details. We appreciate your cooperation in this matter. We are investigating the issue you’ve described. Rest assured, we will thoroughly examine the attached PDF file and the folders you’ve mentioned to better understand and address the situation.
Thank you for your patience
We tested this scenario and unfortunately cannot reproduce it.
Blank folders are created (CustomTempFonts and TempFonts), but no files exist.
The provided pdf “Test_Creating_CustomTempFonts_Folder.pdf” creates the temp folders but does not put any files in them.
Could you please share a screencast/short video, explaining the steps to reproduce the issue?
@atir.tahir
Please check attached image for evidence.
image.png (34.0 KB)
I have reproduced with Test_Creating_CustomTempFonts_Folder.pdf on Windows 10 Pro 22H2, Windows Server 2019 Datacenter.
Test_Creating_CustomTempFonts_Folder.pdf is simple test data.
I have tried with another data (7Mb for example), it create CustomTempFonts with hundreds of MB
What type of test environment there?
We tested it on Windows 11 pro.
We’ll further investigate this issue and notify you about the outcomes.
@atir.tahir
How about the reproduction?
Can you send me the screenshot of running sample source code,
with above sample file ? like my attached image of evidence.
I can not understand why you could not reproduce this problem.
Now, we got CustomTempFonts folder increased 3Gb~4Gb every day.
Thank you for your patience as we investigate the issue. We will provide a essential details of the running sample source code soon. Your understanding is appreciated, and we will keep you updated on our progress.
Using following code snippet,
// Define the source PDF file path
const string source = "Test_Creating_CustomTempFonts_Folder.pdf";
// Open the source PDF file using a FileStream
using (var fs = new FileStream(source, FileMode.Open))
{
// Initialize a Converter using the FileStream as the source stream
using (var converter = new Converter(() => fs))
{
// Create conversion options (e.g., HTML conversion options)
var options = new WebConvertOptions();
// Perform the conversion and save the result as "converted.html"
converter.Convert("converted.html", options);
}
}
The CustomTempFonts
and TempFonts
folders are created, but they are empty. See these screenshots.zip (54.2 KB).
@atir.tahir
Thanks for confirmation and sample source script.
I tested with your source script but no change, The CustomTempFonts
and TempFonts
folders are created with file inside. Folder not empty.
I also changed Windows region to Rusia, language to English, but no change in result.
Please spare us sometime to further investigate the scenario. We’ll let you know if any further details are required.
@atir.tahir
It was confirmed that a folder called Aspose_Imaging was created under the Temp folder same as CustomTempFonts, although the size was small.I don’t know yet whether the number will increase rapidly in the future.
I would like to check the following:
-
The Aspose_Imaging folder was created when converting which type of file?
What is the purpose of Aspose_Imaging folder? Does the capacity increase rapidly like CustomTempFonts? (In previous day, there was a problem where the CustomTempFonts folder increased by 80Gb in one hour, and system in our production environment stopped working.) -
Could you please let me know if there are any other folders related to GroupDocs and Aspose during file conversion other than the three folders listed below?
CustomTempFonts
TempFonts
Aspose_Imaging
First of all, I don’t understand the purpose of creating such a large amount of temporary files, and even if I converted the same file again, the same amount of space increased.
And I was trying to delete these temporary files after calling the conversion process, but it’s not possible. The file conversion process here is called within IIS (because of loading time of GroupDocs licence file), so after conversion, we can not delete the temporary files created by GroupDocs and the folder size was increased rapidly
Sorry for the inconvenience. Please spare us some time to further investigate this behavior.
This issue is reproduced using .NET framework projects only. In .NET60 or .NET70, folders are created but are blank. We will continue investigation and let you know once we have the fix available.
A post was split to a new topic: Persistent CustomTempFonts Folder Growth Issue in GroupDocs.Viewer 24.6.0 and 24.9.0 for .NET Framework