I’m converting Words docs to HTML. Each Word doc has a bunch of headers that get converted as H1, H2, H3, etc. in HTML. I’d like to add an ID tag to each of these headers so I can hyperlink to them and go to the exactly location of the HTML by clicking a link that matches the ID tag. Is there a way to add this when converting from DOCX to HTML?
@courseops Unfortunately, there is no way to achieve your goal using the Aspose.Words API. However, what you can do is save the HTML structure in a string variable (var str = doc.ToString(SaveFormat.Html);
) and then process that string to add the desired ID to each element.