How to create persistent, programmatically-controlled content tags in PDF in Adobe Reader/Pro
- Tag user-selected text in PDFs with unique IDs
- Navigate to any tag programmatically using its ID
- Extract the text content within tag boundaries
- Prevent users from easily deleting tags through Acrobat's UI
- Send/receive tag data to/from an external server using API's
- Preferably integrate it with a react app
Specific questions:
Is there a way to create truly hidden markers/tags in PDFs that are only accessible via API but invisible to users in all Acrobat panels? Can PDF Structure Tags be manipulated via JavaScript, or do they require C++ SDK? If JavaScript supports them, how? What's the recommended approach for integrating a React UI within an Acrobat plugin? Is CEF (Chromium Embedded Framework) the only option? How can I protect annotations/tags from user deletion while maintaining programmatic access? Is there an event I can intercept?
Environment:
Adobe Acrobat Pro DC (2021 or later) Acrobat JavaScript API (preferred) or C++ SDK if necessary
Currently the best option I could find is PDF embed API and in that using annotations. Any guidance on the best approach or alternative PDF objects I should consider?
