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
DynaPDF.GetBookmarksAsJSON
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
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Flags | Pass 1 to get a flat list. | 0 | Optional |
Result
Returns JSON or error.
Description
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 4.0.71.204 or newer, we include NamedDest and Action values.
See also GetBookmarksAsJSON function in DynaPDF manual.
Examples
Query JSON:
Set Variable [ $JSON; Value: MBS( "DynaPDF.GetBookmarksAsJSON"; PDF ) ]
See also
Release notes
- Version 13.1
- Updated DynaPDF.GetBookmark and DynaPDF.GetBookmarksAsJSON functions to return Action and NamedDest properties.
- Version 10.5
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 13.1pr1
- New in MBS FileMaker Plugin 10.5
- MBS FileMaker Plugin, version 10.5pr1
- Embrace JSON
FileMaker Magazin
This function checks for a license.
Created 16th September 2020, last changed 24th January 2023
