Free Support Forum - aspose.cloud

I am using ASPOSE.Word for converting word to pdf But Aspose save method is taking more CPU utilization

I am using ASPOSE.Word for converting word to pdf But Aspose save method is taking more CPU utilization.Could u please help me on this, because we are facing so much problem in this.And we are hurrying in situation please help us.

@santoshp1989

Thanks for your inquiry. We will appreciate it if you please confirm which API version are your using 1.1 or 4.0. Please also share your sample source document here, it will help us to investigate the issue and guide you.

If you are using v1.1, then we strongly recommend to use new improved API Version V4 in terms of memory management and API structure. The SDKs > 19.2 are using API Version V4, you can check release tab for the changes in later SDK versions.

Thank you Ahmad for your response. We are using Aspose.Word 18.5.0.0.

Code:-

for (int i = 0; i < dt.Rows.Count; i++)
{
for (int j = 0; j < dt.Columns.Count; j++)
{
newDocument1.Range.Replace("<<" + column + “>>”, replacetext, findReplaceOptions);
newDocument1.AcceptAllRevisions();
newDocument1.Save(Path.Combine(outpath, outfilename + “_0.pdf”), SaveFormat.Pdf); // This line is not taking more CPU
}
}

Could you please help us to find why Save method taking more CPU.

for (int i = 0; i < dt.Rows.Count; i++)
{
for (int j = 0; j < dt.Columns.Count; j++)
{
newDocument1.Range.Replace("<<" + column + “>>”, replacetext, findReplaceOptions);
newDocument1.AcceptAllRevisions();
newDocument1.Save(Path.Combine(outpath, outfilename + “_0.pdf”), SaveFormat.Pdf); // This line is taking more CPU
}
}

Please check check the latest code spinet

This topic has been moved to the related forum: https://forum.aspose.com/t/i-am-using-aspose-word-for-converting-word-to-pdf-but-aspose-save-method-is-taking-more-cpu-utilization/205893