Set alternative text for Image

Contents
[ ]

The following code snippet also works with Aspose.PDF.Drawing library.

The XImage class contains GetAlternativeText and TrySetAlternativeText methods, which allow you to get and set the alternative text corresponding to an image.

The following code snippet shows you how to use these methods to set alternative text for an image in a PDF file and get it.