These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

elements with alt text but no page content.

dawnva
Registered: Sep 17 2010
Posts: 2
Answered

How can one go about finding "2 element(s) with alternate text but no page content" in a 600 page complex pdf file? Thank you!

My Product Information:
Acrobat Pro 9.3.1, Windows
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Unfortunately, there is no direct (easy) method when working directly out of Acrobat Pro.
However, if you step back and consider the implications of the information a path presents itself.
.
First, Alternate Text description is typically associated with the <Figure> element.
n.b., IAW ISO 32000 the Alt key can be used in any structure element's dictionary - not just <Figure>.
.
Second, as the report identifes a "Figure" having Alt Text but no content, we know the Figure elements (tags) that have alternate text are present in the structure tree.
Third, we know the Figure elements' have no association to underlying PDF page content (structure elements and PDF page content are separate).
Fourth, as a consequence, we know that there will be Figure elements in the structure tree that have no nested Container icons (the "Bankers' box").
Fifth, these Figure elements are the culprits.
.
A pathway to locating the culprits:
When the Tags panel is open —



  • Have 'Higlight' selected.


  • Have the TouchUp Properties dialog open on the Tag tab (applicable Navigation panel open > Options menu > select 'Properties').




  1. In the Tags Panel, walk down the structure tree


  2. Look for any <Figure> elements that have no Container icons


  3. Check the Tag tab's content (in the TouchUp Properties dialog) for an Alternate Text entry)


  4. If Alt Text is present then delete the Figure element




In some cases, what may facilitate location of Alt Text to a given page is to export the Tagged PDF to Text (Accessible).
The text string(s) that comprise the Alternate Text will be present.
In the text file, a square box denotes the end of content that was exported from the PDF file.
You can compare, page by page, what is in the text file to what textual content is in the PDF page.
.

Be well...

dawnva
Registered: Sep 17 2010
Posts: 2
Thanks so much, that was very helpful. I was able to locate 2 figure tags that had no content, and when i right clicked on them and chose properties, I saw that they contained alt text. I deleted these Figure tags and the error disappeared from my accessibility report. Thanks again for your time and detailed response.
misbhavan
Registered: Nov 3 2011
Posts: 1
I have been struggling with the "how to associate page content with alternative text" problem for ages. I've spent countless hours redoing documents so that this error doesn't come up. My life has been in 508 compliance hell for a long time now, and daka630, you have shown me the light!!! Thanks. Just tried this on a document I've been fighting with for 2 days and it works!!!!

misbhavan