I am using Aspose (latest) PDF. I can make an image by using the Image
class like so:
var img = new Image
{
FixHeight = _options.ImageLeftHeight,
FixWidth = _options.ImageLeftWidth,
ImageStream = new MemoryStream(_options.ImageLeft),
HorizontalAlignment = _options.AlignmentLeft,
};
But I cannot seem to find a way to set the Alternative Text for an image.
I can set a title which displays underneath the image, but not the actual hidden alt text. This means any third party tagging just has “Image” as the text.
I found in the docs some examples of setting alt text but this looked to be for existing PDF, iterating over and adding alt text using the XImage class which is a different scenario.
Is there a way to set or influence the alt text for an image as this is quite a big accessibility issue.