Aspose.Pdf Save() Performance

Hi,



I have a spreadsheet that is 500KB in size (attached) and it takes 9 seconds to save as pdf. Is this the expected performance for Aspose.Pdf or are there things I can do to optimize this to sub-second?



-Steve



public void ExportToPdfFromCells()

{

var workbook = new Workbook();



var xls = “C:\1000rows10cols.xls”;

var xml = “C:\1000rows10cols.xml”;

var pdf = “C:\1000rows10cols.pdf”;



var stopWatch = new Stopwatch();



stopWatch.Start();

workbook.Open(xls, FileFormatType.Default);



workbook.Save(xml, FileFormatType.AsposePdf);



var asposePdf = new Aspose.Pdf.Pdf();



asposePdf.BindXML(xml, null);



asposePdf.Save(pdf);

stopWatch.Stop();



Console.WriteLine(stopWatch.Elapsed.TotalSeconds);

}

Dear Steve,

Please try the following codes to optimize the performance:

public void ExportToPdfFromCells()

{

var workbook = new Workbook();



var xls = “C:\1000rows10cols.xls”;

var xml = “C:\1000rows10cols.xml”;

var pdf = “C:\1000rows10cols.pdf”;



var stopWatch = new Stopwatch();



stopWatch.Start();

workbook.Open(xls, FileFormatType.Default);



workbook.Save(xml, FileFormatType.AsposePdf);



var asposePdf = new Aspose.Pdf.Pdf();



asposePdf.IsTruetypeFontMapCached = true; //cache the font map file
asposePdf.TruetypeFontMapPath = @“E:”;//set the dir of the map file


asposePdf.BindXML(xml, null);



asposePdf.Save(pdf);

stopWatch.Stop();



Console.WriteLine(stopWatch.Elapsed.TotalSeconds);

}

Best reards.

Thanks for the solution but it only shaved off around half a second to the process. Are there any other optimization techniques that can be used?



Is 8 seconds a expected result for converting a 1000 rows and 10 columns spreadsheet to pdf?

Hi,

We have made some progress in large table performance optimization. It will be available in our coming release soon.

Best regards.

Thanks.



When can we expect this release?



With-in the next couple of weeks or months?



-Steve

Hello Steve,

As Hans have mentioned, soon we would be able to release the new version and as we have made any progress over this matter, we would be pleased to inform you regarding the status, within this forum thread. Beside this I’ve also contacted the development team to share (if possible) any concrete information regarding the expected release date.

Hi Steve,

I think it will be released in 1-2 weeks. Thanks.

Best regards.

Great. Please do let me know through this thread when this release is ready. Thank you.