How to Automate PDF Bookmark Creation in Nuance PDF using VBA
Question details
The user is attempting to automate the creation of PDF bookmarks using VBA but is encountering compatibility issues with Nuance PDF.

- Product
- Nuance PDF
- Device & OS
- not provided
- Scenario
- Writing and executing a VBA script to dynamically generate bookmarks within an existing PDF document.
- Observed behavior
- Standard VBA code examples designed for Adobe Acrobat's object model fail to execute in Nuance PDF due to differing automation interfaces and bookmark properties.
Verify the exact version of Nuance PDF installed on your system and ensure you have access to its official Developer SDK documentation to reference the correct Object Model.
Consult the Nuance PDF SDK Documentation
Review the specific automation documentation for your version of Nuance PDF to identify the correct API calls for bookmark creation.
Because PDF applications do not share a universal VBA Object Model, scripts written for Adobe Acrobat will not natively translate to Nuance PDF. You must reference the specific classes and methods exposed by the Nuance SDK.
Launch your Office application (like Excel or Word) and press 'Alt + F11' to open the Visual Basic for Applications editor.
Navigate to 'Tools' > 'References' in the top menu. Scroll down to look for 'Nuance PDF' or 'Power PDF' Object Library and check the box next to it to enable it.
Press 'F2' to open the Object Browser. Select the Nuance library from the dropdown to inspect exposed classes related to 'Bookmarks' or 'Outlines' and adapt your VBA script to match these methods.

Use an Alternative Compatible PDF Library
If Nuance PDF lacks VBA support for bookmarks, utilize an alternative PDF processing library or Adobe Acrobat to handle the automation.
Easily Create and Manage PDF Bookmarks with WPS Office
If VBA automation proves too complex or incompatible with your current software, WPS Office provides a highly intuitive, visual interface for managing PDF bookmarks without writing a single line of code.
- 1. Open your PDF Document: Launch WPS Office and open the PDF file you wish to add bookmarks to.
- 2. Access the Bookmark Pane: Click the 'Bookmark' icon located on the left-hand navigation pane to open the bookmark manager.
- 3. Add a New Bookmark: Navigate to the desired page, right-click inside the bookmark pane, and select 'Add Bookmark', or click the '+' icon.
- 4. Organize Your Outlines: Rename the bookmark to reflect the section, and simply drag and drop bookmarks to create a logical, nested hierarchy.

Frequently Asked Questions
Why doesn't my Adobe Acrobat VBA code work in Nuance PDF?
Different PDF applications utilize unique Object Models and APIs. Nuance PDF does not use the same automation interfaces, methods, or class names as Adobe Acrobat, meaning code explicitly written for Acrobat cannot execute in Nuance.
How do I add a Nuance PDF reference in Excel VBA?
Open the VBA Editor (Alt + F11), navigate to Tools > References, and scroll through the list to find the Nuance PDF or Power PDF object library. Check the box next to it and click OK to enable the library for your project.
What should I do if Nuance PDF doesn't expose bookmark properties via VBA?
If the Nuance SDK documentation confirms that bookmark automation is unsupported, you will need to perform the task manually in the software's interface, seek help in specialized developer forums, or switch to a PDF library that explicitly supports bookmark automation.




