How to Access PDF Tags and the Structure Tree via C# and Acrobat SDK
Question details
The user wants to programmaticlly retrieve PDF tags and access the tagged structure tree using C# and the Adobe Acrobat SDK.

- Product
- Adobe Acrobat SDK
- Device & OS
- not provided
- Scenario
- Developing an application to extract, navigate, or manipulate the internal logical structure and tags of a PDF document.
- Observed behavior
- The standard Acrobat Interapplication Communication (IAC) API in C# provides limited to no support for deep interaction with the PDF tag tree.
Ensure you have the latest supported version of the Adobe Acrobat SDK installed and your development environment is set up for C++ development, as C# is inherently limited for this specific task.
Develop a C++ Acrobat Plug-in Using PDSEdit and PDFEdit Layers
Since the C# IAC API is too limited for comprehensive tag manipulation, creating a C++ plug-in is the required approach to access the PDF structure tree.
The Interapplication Communication (IAC) API available to C# developers does not expose the necessary endpoints to fully interact with PDF tags. To retrieve and manipulate the tagged structure tree, developers must transition to a C++ environment.
By utilizing the PDSEdit and PDFEdit layers within a C++ plug-in, you gain direct access to the PDF's internal tagging and logical structure mechanisms.
Obtain the most recent version of the Adobe Acrobat SDK. Avoid using obsolete versions like Acrobat XI to ensure compatibility and security.
Set up a new C++ Acrobat plug-in project in your IDE (such as Microsoft Visual Studio) configured with the SDK's header and library files.
Call the PDSEdit API functions to traverse the logical structure of the document, locate the root of the tag tree, and iterate through the structural elements.
Combine the PDSEdit logic with the PDFEdit layer to read, extract, or safely modify the specific physical content associated with those tags.
Edit and Manage PDFs Easily with WPS Office
While programmatic access to deep PDF structure tags requires complex C++ SDK development, everyday PDF viewing, editing, and management is simple with WPS Office. It provides a lightweight, highly compatible toolkit for handling your documents without the need for coding.

Frequently Asked Questions
Can I access the full PDF structure tree using only C#?
No, the Acrobat Interapplication Communication (IAC) API available for C# has very limited support for PDF tagging. Comprehensive access to the tag tree requires using a C++ plug-in.
Are older SDK versions like Acrobat XI still viable for PDF tagging?
Acrobat XI is considered obsolete. It is highly recommended to use a currently supported version of the Adobe Acrobat SDK, even though the core PDSEdit API layers remain fundamentally similar.
What are PDSEdit and PDFEdit in the Acrobat SDK?
They are advanced C++ API layers within the SDK. PDSEdit is used for handling the logical structure and tags of a PDF document, while PDFEdit manages the physical content and objects rendered on the page.




