I have a document that I want to iterate through and replace each form field with static text. Like FORM FIELD REMOVED. I see that I can use a DocumentBuilderv object and use builder.MoveToBookmarkbuilder.MoveToBookmark then builder.Writebuilder.Write ... BUT ... not all form fields have names. Some are actually empty. How can insert my text (before or after) every single form field in the document.
Here is what "amlmost" works (it does not work if the form field name is empty):
DocumentBuilder builder = new DocumentBuilder(dest);
foreach (Aspose.Words.Fields.FormField ff in dest.Range.FormFields)
builder.Write("FORM FIELD REMOVED");
// ... followed by some code that just calls FormFields.RemoveAt on every form field.