Hi,
I need to accomplish the following:
This is text for paragraph1 and some more text.
This is text for paragraph2 and some more text.
I need to extract text between both paragraphs, like this:
This is text for paragraph1 and some more text.
This is text for paragraph2 and some more text.
So I can end up with the following new text
paragraph1 and some more text.
This is text for paragraph2
Is this possible? Can you provide some sample code?
Thank you very much.
Hi
Thanks for your inquiry. Yes, you can achieve this using Aspose.Words. I think, you can try using the same technique as described here:
https://forum.aspose.com/t/99344
Note: code provided in this thread should be modified a little, because there were few changes in Aspose.Words API. You should use IReplacingCallback instead of ReplaceEvaluator. Let me know if you need help in modifying the code.
Also, maybe in your case, you can mark the text that you need to extract by bookmark and then just extract content of this bookmark.
Best regards,