How to add alt text to an image

Product: Server SDK

Product Version: 11.4.0

Please give a brief summary of your issue:
How to add alternate text to an image in a PDF using Node.js and Apryse SDK v11.4.0

Please describe your issue and provide steps to reproduce it:
I’m using Apryse Server SDK v11.4.0 with Node.js to add images to a PDF.
The image is added correctly, but I need to include alternate text (alt text) for accessibility. I couldn’t find documentation or examples on how to do this.

Please provide a link to a minimal sample where the issue is reproducible:

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


Adding alternate text (alt text) to images in a PDF is essential for accessibility, allowing screen readers to convey information about images to visually impaired users. In Apryse SDK, you can achieve this by associating a text description with the image using PDF annotations.

Some things you can try:

  • Use the PDFDoc class to open or create a PDF document.

  • Insert your image using the Image object provided by Apryse SDK.

  • Create a Text annotation or a similar annotation type that supports alt text.

  • Set the alt text property of the annotation to the desired description.

  • Associate the annotation with the image on the page.

  • Ensure that the annotation is correctly added to the page and saved in the document.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like