We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert Named Anchor Paragraph in HTML to Jump-able Bookmarked Place in Word Document - Hyperlinks C# .NET

Hi Team,

I have an html with jump to section anchor tag. How can I book mark this with Aspose.Word when converting from html to word.

Go to First Section Go to Second Section

The same question is asked in below thread but I do not understand one line “You need to point link to a bookmarked location

https://forum.aspose.com/t/html-to-word-to-pdf-inline-anchor-tags/186961

Regards,
Sanjay

@skothari120790,

Please see these input HTML and Aspose.Words’ generated output Word (DOCX) and PDF files:

And try running the following code:

Document doc = new Document("E:\\temp\\link to bookmark\\inp.html");
doc.Save("E:\\temp\\link to bookmark\\20.1.docx");
doc.Save("E:\\temp\\link to bookmark\\20.1.pdf");

Hope, this will help in achieving what you are looking for.

Thanks it works