Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

DynaPDF.FindBookmark

Searches for a bookmark in the document outline tree.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.0 Yes Yes Yes Yes Yes

MBS( "DynaPDF.FindBookmark"; PDF; DestPage; Title )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
DestPage Destination page used by the bookmark or -1. -1
Title The title of the bookmark or a part of it. "Chapter 1"

Result

Returns bookmark handle or error.

Description

Searches for a bookmark in the document outline tree.
If the parameter DestPage is greater zero the function returns the handle of the first bookmark that uses this page number as destination page.
If DestPage is smaller 1 the function returns the handle of the first bookmark that contains the substring Title in the bookmark title. The substring Title is compared non-case-sensitive.
The parameter Title can be "", the function searches for bookmarks with no title in this case. To search for the next bookmark with the same search parameters call DynaPDF.FindNextBookmark.
It is safe to delete a found bookmark with DynaPDF.DeleteBookmark and continue the search run with DynaPDF.FindNextBookmark.

If a bookmark can be found the return value is the bookmark handle, a value greater or equal zero. If no bookmark can be found the return value is -1. If an error occurred, the return value is an error.

See also FindBookmark function in DynaPDF manual.

See also


DynaPDF.FileLink   -   DynaPDF.FindEmbeddedFile

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos