@tilal.ahmad, I was able to solve the issue. Can I ask another one? Is there a way to use the replacetext to add a Bold code to part of a text?
I am afraid currently Aspose.Words Cloud does not support replacing text with bold style. We have logged a ticket WORDSCLOUD-1540 for further investigation and rectification. We will keep you updated about the issue resolution progress within this forum thread.
About your requirement to make replaced text bold, you can try the following workflow. First replace the text using ReplaceText API, later use Search API to find the node path of new text value and finally update its format using UpdateRunFont API.