Free Support Forum -

Time to convert docx to pdf


We have an application that needs to convert documents to PDF, and our customer is concerned with the time it takes to do the conversion.
Here is the example we used (please rename the attachment to docx, as I can not upload docx files here).
We are running this line to convert it (for the attached file it takes 14 seconds):

new Aspose.Words.Document(postFile.InputStream);

We also have the same line for different files type:

new Aspose.Pdf.Document(postFile.InputStream);
new Aspose.Slides.Presentation(postFile.InputStream);
new Aspose.Cells.Workbook(postFile.InputStream);

Is there a way to make it faster?

Thank you!

this file a docx file - please rename it.pdf (773.1 KB)


After an initial test with the licensed latest version of Aspose.Words for .NET i.e. 18.11, we were unable to reproduce this issue on our end. It took just 1726ms to load this document in Aspose.Words’ DOM (Document Object Model) and then 25352ms to convert it to PDF on our end. The peak memory it consumed was 220Mb. So, we would suggest you please upgrade to the latest version of Aspose.Words for .NET. Hope, this helps.