Free Support Forum - aspose.com

How do I stitch a document in a specific section of a document

Hi
I want to implement the following functions
I will cover html to word,but first I need to add some mark in the html,so after cover I can find these marks and insert other word at these marks.
How can I do it?
Thanks

@zhengkai,

Thanks for your inquiry. In your case, we suggest you please add the bookmark into your HTML as shown below.

<a name=“bookmark”>Text</a>

Once you import the HTML into Aspose.Words’ DOM, please move the cursor to the Bookmark and insert the content according to your requirement. Please refer to the following articles.
Use DocumentBuilder to Insert Document Elements
Moving the Cursor