Free Support Forum -

Set alternate text of SVG after HTML to DOCX conversion using C#

Hi Team,

Similar to image (by setting alt property), how can we set the alt text of svg in html to word?



When HTML is imported into Aspose.Words’ DOM, SVG is imported as Shape node. You can use Shape.AlternativeText property to set the alternative text of shape.

However, Aspose.Words does not provide API to detect either shape is SVG or other type. We have logged this feature request as WORDSNET-19809 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.