I have found an issue if you use the Replace function to replace a piece of text in a document with the value of the PageCount property for the document.
AsposeReplaceProblem.zip (291.8 KB)
Please see attached example (the document is in the zip file as well, in a sub folder).
If you choose yes to the question that pops up, it uses the PageCount value and even displays the output of the GetText call which shows the replace has taken place.
However, the saved file does not include the change.