Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6374829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:32:14+00:00 2026-05-25T01:32:14+00:00

The task is to add ‘Alt’ text for images in a PDF document, such

  • 0

The task is to add ‘Alt’ text for images in a PDF document, such that a screen reader will read out the text.

Currently, my PDF documents don’t have a structure tree defined.

Can such text be added to an image, WITHOUT needing to define an entire structure-element hierarchy for the whole document? I want to add the Alt text with minimal changes to the PDF document. The tool I’m using to generated the pdf is not so good at generating structural elements. Hence, I wish to avoid the need to define structure at all.

What I’m looking for is HTML-like behavior, where the Alt text is added locally to an image tag, without requiring changes elsewhere.

The PDF 1.6 spec states that, beginning with PDF 1.5, Alt text can be added for:

(PDF 1.5) A marked-content sequence (see Section 10.5, “Marked
Content”), through an Alt entry in a property list attached to the
marked-content sequence with a Span tag.

Can such a Span be added WITHOUT also adding any structure elements?

My tests indicate “no”, but my tests may not be robust. The tests generate this:

ET
/Span <</Alt(This is alternate text.)>> BDC
q 180 0 0 15.84 36 747 cm /img0 Do Q
EMC
BT

in a PDF 1.4 doc. The doc has no structure tree defined:

16 0 obj<</Type/Catalog/Pages 14 0 R>>

Then I hack the first line, and change the PDF version from 1.4 to 1.5. The end result is that the Alt text is not read by Adobe Reader 10.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:32:15+00:00Added an answer on May 25, 2026 at 1:32 am

    In order to have a working Alt text, you need to define a structure tree, it is required by PDF specification. You can define the Alt text the way you wrote above without the structure tree, but it is non standard and it might or might not work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple task: add the contents of a textField to an
I have recently been given a task to add the ability to interact with
I want to add a scheduled task to a client's ASP.NET app. These posts
I'm trying to programmatically add an Execute SQL task from within a script task
TASK : I have an existing xml document (UTF-8) which uses xml namespaces and
I have a task - add round corners to HtmlPanelGrid. Now I am trying
I received the task to add a mobile-friendly version of our website. Apps for
I'm trying to call AlterTask on a newly created Sharepoint task to add extended
I have a simple web control (TaskList) that can have children (Task) which inherit
I am using a ScheduledExecutorService to execute a task that calls a service at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.