Plug-in – Developing a plug-in to count all bookmarks

OK – this is a simple plug-in example to count all the bookmarks in the active document.

Basically it grabs the root bookmark and recurses through each child bookmark in-order. As it finds bookmarks it counts them. When all bookmarks have been counted a message is displayed to the user informing them of the count. Pretty simple… the recursion function was taken from page 49 of the SDK tutorial.

Here’s the actual working code… everything else is part of the framework.

You May Also Like

About the Author: Planet PDF Team

Leave a Reply