PDF Editing Issues

How to Add PDF Bookmarks with Foxit ActiveX SDK and Excel VBA

Ayan MasoodAyan Masood Oct 26, 2026 870 views

Question details

The user is trying to add PDF bookmarks programmatically using Excel VBA and the Foxit ActiveX SDK but is struggling with the correct library references, object methods, and bookmark syntax.

How to Add PDF Bookmarks with Foxit ActiveX SDK and Excel VBA
Product
Excel VBA / Foxit SDK
Device & OS
not provided
Scenario
Automating the creation of PDF bookmarks through an Excel VBA script integrating with the Foxit PDF SDK.
Observed behavior
The VBA code fails to execute properly due to incorrect API syntax, missing library references, or a misunderstanding of the Foxit-specific object model.
Before you start

Before seeking developer support, ensure you have documented your exact Foxit SDK version, your active VBA references, and the specific line of code generating the error.

Solution 1Recommended

Consult the Official Foxit Software Developer Forum

Because Foxit-specific APIs and object models are highly specialized, the most effective way to resolve VBA syntax and library issues is to seek guidance directly from the official developer community.

General Excel VBA forums often lack the proprietary knowledge required to troubleshoot third-party SDKs like Foxit. Reaching out to the official support channels ensures you get accurate, version-specific syntax and reference requirements.

1
Gather SDK details

Identify the exact version number of the Foxit ActiveX SDK or PDF SDK DLL you have installed on your system.

2
Isolate the VBA code

Open your Excel VBA editor and copy the specific block of code that attempts to add the PDF bookmarks, along with any error messages you are receiving.

3
Navigate to the official forum

Visit the official Foxit Software developer forum specifically dedicated to the PDF SDK DLL or ActiveX control.

4
Post your requirements

Create a new thread detailing your PDF bookmark automation goal. Include your SDK version, current VBA library references, and paste the isolated code block to receive targeted help.

Consult the Official Foxit Software Developer Forum
Documentation Check: Always verify your code against the official API reference guide provided with your specific version of the Foxit SDK, as methods and properties frequently change between releases.
All-in-one Office Suite

Easily Add and Manage PDF Bookmarks with WPS Office

If you want to bypass the complexity of writing VBA code and troubleshooting third-party SDKs, you can easily add, organize, and manage PDF bookmarks visually using the built-in PDF editor in WPS Office.

  1. 1. Open your PDF file: Launch WPS Office and open the PDF document you wish to modify.
  2. 2. Access the bookmark panel: Click on the 'Bookmark' icon located on the left-hand navigation pane to open the bookmark manager.
  3. 3. Navigate to the target page: Scroll through your document to the specific page or section where you want the new bookmark to point.
  4. 4. Add a new bookmark: Click the '+' (Add Bookmark) button at the top of the bookmark panel.
  5. 5. Name and save: Type a descriptive name for your new bookmark and press Enter to save it to the document structure.
Fully compatible with standard PDF formats and Microsoft Office filesIntuitive, visual interface for managing PDF bookmarksNo complex programming or SDK setup requiredAll-in-one lightweight suite for spreadsheets, documents, and PDFs
QA img-9

Frequently Asked Questions

Why does my Excel VBA code fail to recognize Foxit PDF objects?

This usually occurs when the Foxit ActiveX SDK library is not correctly referenced in your project. You must open the VBA editor, go to Tools > References, and ensure the appropriate Foxit SDK library is checked.

Can I use general VBA forums for help with Foxit API syntax?

While general VBA forums are excellent for standard Excel macros, they typically do not have sufficient information regarding proprietary third-party APIs like the Foxit SDK. It is highly recommended to use the official Foxit software forums instead.

Are PDF bookmarks added via VBA compatible across all PDF readers?

Yes, as long as the SDK writes the bookmarks according to standard PDF specifications, the resulting bookmarks will be visible and fully functional in standard readers like WPS PDF, Adobe Acrobat, and others.