Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  


Returns the properties of a bookmark.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetBookmark"; PDF; BookmarkHandle; Selector )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
BookmarkHandle The reference number for the bookmark. Either returned by one of the add/insert functions or just counting from 0 to DynaPDF.GetBookmarkCount-1. $BookmarkHandle
Selector Which information to query. "Title"


Returns value or error.


Returns the properties of a bookmark.
This allows you to learn to which page the bookmark refers to.

Selectors can be:
ColorBookmark color (PDF 1.4)
DestPageDestination page
DestPosDestination position
DestTypeDestination type (see DynaPDF.SetBookmarkDest)
Open1 if the bookmark appears open
ParentParent bookmark if any or -1
StyleText style. a combination of 1 for italic and 2 for bold.
TitleTitle text.
TitleLenTitle length in characters.
NamedDestOptional name of a named destination. If set, DestPage, DestPos, and DestType were already taken from the destination if it was found.
ActionAction handle or -1 if not set.

When DynaPDF library is version or newer, you can query NamedDest and Action values.

See also GetBookmark function in DynaPDF manual.


query title of a bookmark:

MBS( "DynaPDF.GetBookmark"; $PDF; $BookmarkHandle; "Title" )

See also

Release notes

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 24th January 2023

DynaPDF.GetBBox - DynaPDF.GetBookmarkCount

💬 Ask a question or report a problem