• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is there a way to extract the specific content related to a tagged PDF element?

New Here ,
Jul 24, 2023 Jul 24, 2023

Copy link to clipboard

Copied

There are many developer SDKs that can extract the tag tree of a tagged PDF (a PDF with accessibility markup), and there are many that can extract the PDF content as one big text string.

 

However I need to find the specific content which each tag points to in the PDF. I know Acrobat has this data because you can clearly see it in the tag tree in Acrobat (picture attached), but is this programmatically possible through an API?

 

thank you

TOPICS
Acrobat SDK and JavaScript

Views

197

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 24, 2023 Jul 24, 2023

Copy link to clipboard

Copied

It is possible when you create a plugin (written in C/C++) for Adobe Acrobat.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 24, 2023 Jul 24, 2023

Copy link to clipboard

Copied

Can you explain a bit? Is there a code example or API for this? Why only in a plugin?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 24, 2023 Jul 24, 2023

Copy link to clipboard

Copied

"Why only in a plugin?"

It is not possible with IAC, OLE, or Javascript.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 24, 2023 Jul 24, 2023

Copy link to clipboard

Copied

LATEST
quote

Can you explain a bit? Is there a code example or API for this? Why only in a plugin?


By @Iddo31257976zlkh


Haha haha, Ask Adobe why. We just use what they give us. 

 

Download the Acrobat SDK and look at the provided examples. Read the documentation. 

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/plugin/index.html

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines