I am trying to clear all the document text from a document using the SDK. Here is my code...
for (int pageNumber = 1; pageNumber <= document.PageCount; pageNumber++) { var page = document.GetPageInfo(pageNumber); if (page.HasText) page.ClearPagePart(PagePart.Text); }
I get no errors when i run this code and all the document text is empty but the "Text Pages" field still has a value of "Some". I would expect it to have a value of "None".
What am I doing wrong?