CreateNewBookmark Method

Top  Previous  Next

The CreateNewBookmark method creates a new bookmark in the PDF document.

 

 

 

Syntax

 

 

[VC++]

CgtPDFOutlineX CreateNewBookmark(LPCTSTR Title, LPDISPATCH Destination, LPDISPATCH OutLineAttribute);

 

[CS]

public abstract new gtPDFOutlineX CreateNewBookmark(System.String Title, PDFtoolkitX.gtPDFDestinationX Destination, PDFtoolkitX.gtBookmarkAttributeX OutLineAttribute)

 

[VB]

Function CreateNewBookmark(Title As String, Destination As gtPDFDestinationX, OutLineAttribute As gtBookmarkAttributeX) As gtPDFOutlineX

 

 

 

 

 

Parameters

 

 

Title

[in] Indicates the text that labels the new bookmark.

 

 

Destination

[in] Refers to the Page, Position and Fit Type within the page to which the bookmark is linked. Pass an instance of gtPDFDestinationX object with its properties set.

 

 

OutLineAttribute

[in] Instance of gtBookmarkAttributeX, whose properties can be used to set the bookmark's color and style.

 

 

 

Return Value

 

 

Instance of gtPDFOutlineX object refers to newly created bookmark.

 

 

Example Code

 

       See Tutorial - Bookmarks