Skip to main content
cburatto
Participant
February 2, 2017
Question

Searching and tagging text for accessibility: can you do it programmatically?

  • February 2, 2017
  • 3 replies
  • 627 views

I have several documents going under accessibility work (508). This is done manually.

However, several documents contain the same text across them (some headings, some paragraphs, etc). Is is possible to do the following programmatically?

  • Mark a document as "tagged pdf" (create a root tag)
  • Search for the repeated text.
  • Apply the desired tag (for example, H1, P, etc).

I have been searching the Acrobat SDK but cannot find any methods for tagging a text selection. I haven't found anything on Javascript (I suppose the accessibility requires core functionality available only via the C++ API).

This topic has been closed for replies.

3 replies

cburatto
cburattoAuthor
Participant
February 2, 2017

Thanks, I'll start digging into that. Do we have any resource at the forums for contacting Acrobat developers who provide consulting services?

lrosenth
Adobe Employee
Adobe Employee
February 2, 2017

We used to have a list of them online, but it was difficult to keep up to date and has been removed.

I am pretty sure a web search will help you find them – there are a number of them in various countries around the world.

cburatto
cburattoAuthor
Participant
February 2, 2017

Thanks lrosenth -- Would you have more information? Where can I find this on the C++ SDK documentation? For example, which method to apply to the result of a text search? Is there anything like textResult.setTag('H1') for example?

Thanks for pointing me out on the right direction!

lrosenth
Adobe Employee
Adobe Employee
February 2, 2017

No, it’s nowhere near that simple.

You need to look at the PDFEdit and PDSEdit APIs.

lrosenth
Adobe Employee
Adobe Employee
February 2, 2017

Yes, you can only do this via the C/C++ APIs – but it is certainly doable there.