Excessive filesize output (>400MB)

While testing with some larger PDF files (10MB to 20MB each) to create XLS, I’m facing enormous spreadsheet filesize (>400MB).
But if I open this enormous file with Excel and “save as” another file, it get reduced to the expected ~10MB filesize.

I’m using the most updated versions:
Aspose.Net 23.8.0
Excel version 2307 build 16626.20170

Sample:
Input file: 8MB
input_file.7z (4.6 MB)

Output XLS: 434MB
output_file_v0.7z (2.3 MB)

XLS open/save-as: 5.8MB
output_file_v1.7z (5.5 MB)

C# code:

var inputFile = Request.Files[i];

// Load PDF with an instance of Document
var document = new Document(inputFile.InputStream);

var extension = Path.GetExtension(inputFile.FileName);
var filename = inputFile.FileName.Replace(extension, "") + "_" + dataAtual.ToString("yyyy.MM.dd-HH.mm.ss") + ".xlsx";

var dataSave= new ExcelSaveOptions { MinimizeTheNumberOfWorksheets = true };

var filepath = ConfigurationManager.AppSettings["outFolder"].ToString() + filename;

// Save document in XLS format
document.Save(filepath, dataSave);

@rd1218

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55362

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.