Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries all bookmarks as JSON array.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetBookmarksAsJSON"; PDF { ; Flags } )   More


Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Flags Pass 1 to get a flat list. 0 Optional


Returns JSON or error.


Queries all bookmarks as JSON array.
See TBookmark structure in DynaPDF help, which we convert to JSON for you.
Hierarchy is preserved, so you find the child entries in an entry named "children".

Keys include: Color, DestPage, DestPos, DestType, Open, Parent, Style, Unicode, TitleLen, Title, Children and Index.
If flat option is used, the Children array will include the indexes of children instead of objects describing those.

When DynaPDF library is version or newer, we include NamedDest and Action values.

See also GetBookmarksAsJSON function in DynaPDF manual.


Query JSON:

Set Variable [ $JSON; Value: MBS( "DynaPDF.GetBookmarksAsJSON"; PDF ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 16th September 2020, last changed 24th January 2023

DynaPDF.GetBookmarkCount - DynaPDF.GetBorderStyle