DynaPDF.GetBookmarkCount
------------------------

Returns the number of bookmarks defined in the document.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [4.0](newinversion40.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetBookmarkCount"; PDF ) 

**MBS**( **"DynaPDF.GetBookmarkCount";** /\* Returns the number of bookmarks defined in the document. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns number or error.

### Description

Returns the number of bookmarks defined in the document.  
See also [GetBookmarkCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetBookmarkCount.shtml) function in DynaPDF manual.

### Examples

Query bookmark count:

 MBS ( "DynaPDF.GetBookmarkCount"; $PDF )  
### See also

- [DynaPDF.ChangeBookmark](DynaPDFChangeBookmark.md)
- [DynaPDF.DeleteBookmark](DynaPDFDeleteBookmark.md)
- [DynaPDF.GetBookmark](DynaPDFGetBookmark.md)
- [DynaPDF.GetBookmarksAsJSON](DynaPDFGetBookmarksAsJSON.md)
- [DynaPDF.GetColorSpaceCount](DynaPDFGetColorSpaceCount.md)
- [DynaPDF.GetImageCount](DynaPDFGetImageCount.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetBookmarkDest](DynaPDFSetBookmarkDest.md)
- [DynaPDF.SetBookmarkStyle](DynaPDFSetBookmarkStyle.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.GetBookmark](DynaPDFGetBookmark.md) - [DynaPDF.GetBookmarksAsJSON](DynaPDFGetBookmarksAsJSON.md)

[HTML Version](DynaPDFGetBookmarkCount.shtml)