Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.3 7.4 7.5 8.0 8.1 8.2 8.3 8.4 8.5 8.6 Statistic
Adds a bookmark to the global outline tree of the document.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|The PDF reference returned from DynaPDF.New.|
|Title||Title of the bookmark.||"Chapter 2"|
|Parent||Parent bookmark if any or -1 for a root node.||-1|
|NamedDest||Name of a named destination (text) or Named Destination handle (number).||"test"|
|Open||Open (1) or close (0) the node when it has children?||0|
Returns new bookmark handle or error.
DescriptionAdds a bookmark to the global outline tree of the document.
It sets also the page mode to UseOutlines (see DynaPDF.SetPageMode). If the outline tree should not be shown when opening the document, set the page mode back to pmUseNone or any other value before closing the document.
Parent can be a handle of another bookmark if it should be added as a child of this bookmark. If Parent is set to -1 the bookmark is added as a root node.
The difference in comparison to DynaPDF.AddBookmarkEx is that the named destination can be defined as a string. This makes it possible to create the bookmark, also if you don't have the required information to create the named destination at this point. If the named destination does not exist when the file is closed then the bookmark does nothing. See also DynaPDF.CreateNamedDest().
See also AddBookmarkEx function in DynaPDF manual.
Created 18th August 2014, last changed 18th August 2014
Feedback: Report problem or ask question.
MBS Xojo Plugins