Free Support Forum - aspose.com

PDF to Docx/Doc taking more time

Hi Team,
We are exploring Aspose.PDF to convert PDF to Doc/x format. For this we have used Aspose.PDF 20.12.0 version. One issue we are facing, it takes more than 20-25 seconds for converting 4-5 page PDF to Doc/X. Below is the sample code :
Aspose.Pdf.Document document;
MemoryStream inputStream = new MemoryStream(fileBytes);
document = new Aspose.Pdf.Document(inputStream);
MemoryStream outputStream = new MemoryStream();
Aspose.Pdf.DocSaveOptions saveOptions = new Aspose.Pdf.DocSaveOptions
{
Format = Aspose.Pdf.DocSaveOptions.DocFormat.DocX,
Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.Flow,
RecognizeBullets = true
};
document.Save(outputStream, saveOptions);
inputStream.Close();
Is there any way to make the conversion faster ?

@KedarJoshi

Please note that the performance of the API is calculated on the basis of subsequent runs of the program as at the time of first run, the API loads necessary resources into system memory and process the files. Furthermore, please share your sample PDF document with us with which we can test the scenario in our environment and share our feedback with you accordingly.