Image ALT Tags

I am trying to add an alt tag to an Image and have no luck.

I tried the following:

Pdf pdf1 = new Pdf();
Aspose.Pdf.Generator.Section section = pdf1.Sections.Add();
string stest = “<img src=’” + sSaveFile.Trim() + “’ alt=“TAG This” />”;
Aspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(stest);
text2.IsHtmlTagSupported = true;
section.Paragraphs.Add(text2);
pdf1.HtmlInfo.ImgUrl = @“C:\Graphicimages”;
pdf1.Save(@“C:\Graphicimages” + “ImageTest.pdf”);

as well as:

Pdf pdf1 = new Pdf();
Aspose.Pdf.Generator.Section section = pdf1.Sections.Add();
string stest = “”;
Aspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(stest);
text2.IsHtmlTagSupported = true;
section.Paragraphs.Add(text2);
pdf1.HtmlInfo.ImgUrl = @“C:\Graphicimages”;
pdf1.Save(@“C:\Graphicimages” + “ImageTest.pdf”);

I saw this post that said it was supported.:

Text rotation, Image rotation, basefont, dt, dl, menu & alt tags

Posted on [October 11, 2010](https://blog.aspose.com/2010/10/11/text-rotation-image-rotation-basefont-dt-dl-menu-alt-tags) by codewarior

[inShare](https://blog.aspose.com/2010/10/11/text-rotation-image-rotation-basefont-dt-dl-menu-alt-tags)

Putting another feather in the crown, a new version of Aspose.Pdf for .NET has been released with a better support for rendering XML and XSLT file contents. With the release of this version, ImageRotation and TextRotation have also become more stable. Nonetheless, the support for and many other HTML controls has been provided.

In order to view a complete list of fixes and to download Aspose.Pdf for .NET 4.7.0, please visit [this link](http://www.aspose.com/community/files/51/.net-components/aspose.pdf-for-.net/entry262882.aspx).

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the details.

I am able to reproduce your mentioned issue after an initial test with the latest version. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-34216. We will notify you via this forum thread regarding any update against your reported issue.

Sorry for the inconvenience,

The issues you have found earlier (filed as PDFNET-34216) have been fixed in Aspose.PDF for .NET 24.8.