Develop an Acrobat C++ Plug-In to Expand and Collapse PDF Bookmarks
Question details
The developer needs guidance on building a C++ Acrobat plug-in that expands and collapses PDF bookmarks.

- Product
- Adobe Acrobat SDK
- Device & OS
- not provided
- Scenario
- The developer is looking for SDK documentation or examples for controlling bookmark expansion and collapse.
- Observed behavior
- The developer cannot find implementation guidance for the required bookmark behavior in the SDK documentation.
Identify your Acrobat version, SDK version, compiler, operating system, and Acrobat architecture. Decide whether you need to change one bookmark, an entire branch, or all bookmarks, and whether the change should affect the visible navigation pane.
Review Acrobat SDK bookmark APIs and plug-in examples
Use the SDK documentation and sample projects to investigate the available bookmark and user-interface APIs for your Acrobat version.
PDF bookmark objects and the visible expansion state of the navigation pane are not necessarily controlled by the same API. Check whether your SDK version exposes the specific expand or collapse behavior you need; do not assume that modifying a bookmark object will update the pane.
Visit the Adobe Acrobat SDK documentation at https://opensource.adobe.com/dc-acrobat-sdk-docs/ and open the Acrobat plug-in documentation and API reference.
Find the plug-in development guide and sample projects for your SDK version. Review how a C++ plug-in is built and loaded into Acrobat before adding bookmark functionality.
Search the API reference for PDBookmark, bookmark actions, and navigation-pane behavior. Check the descriptions and version requirements for any relevant methods, including whether they control visible expansion state.
Build an appropriate SDK sample using your supported compiler and test it in your target Acrobat version. Use a PDF with nested bookmarks to verify which operations affect the navigation pane.

Ask the Acrobat SDK community about bookmark expansion
Use the developer forum when the documentation does not clearly cover the required expansion or collapse behavior.
Use WPS Office for everyday PDF and document work
WPS Office is a free, lightweight alternative for everyday document and PDF work, with a familiar interface and compatibility that makes moving existing files easier. It does not provide an API for developing Adobe Acrobat plug-ins.

Frequently Asked Questions
Where can I find Acrobat plug-in examples?
Open the Acrobat SDK documentation and look for its plug-in development guide and sample projects. Choose examples that match your SDK and Acrobat versions.
Does PDBookmark automatically expand the Acrobat bookmark pane?
Do not assume it does. PDBookmark relates to PDF bookmark objects; check the API reference for your SDK version to see whether a supported method controls the visible pane's expansion state.
What should I include in an Acrobat SDK forum post?
Include your Acrobat version, SDK version, compiler, operating system, architecture, and the exact bookmark behavior you need. Also share relevant code and the documentation or samples you have already checked.
Can WPS Office develop or run an Acrobat plug-in?
WPS Office is an alternative for everyday PDF and office document work, not a development environment or replacement host for Adobe Acrobat plug-ins. Use the Acrobat SDK and a supported C++ development environment for the plug-in.




