Free Support Forum - aspose.com

Is there a way to remove entire paragraphs from the document?

I want to loop through the document and if I find a specific word or phrase in a paragraph I want to remove that paragraph and remove the paragraphs that follow it. I want to keep removing paragraphs until another paragraph with a different phrase is found.

I want to both remove the paragraph and the carriage return/line feed as well.

I wanted to check if there is an easy way to do it (there are a lot of easy ways with this tool).

Is docbuilder the way to try to do this? Any examples?

At the moment modifying document contents is not easy with Aspose.Word. What you want to do is not possible in the current version. Please check back in 2 months or if we have more advanced document editing features in place.