[]
        
(Showing Draft Content)

C1.C1Pdf.C1PdfDocument.AddBookmark

AddBookmark Method

AddBookmark(string, int, double)

Adds a bookmark to the current page.

Declaration
public void AddBookmark(string text, int level, double y)
Parameters
Type Name Description
string text

Text that appears on the outline tree.

int level

Outline level (zero is the top level).

double y

Position on the current page where the outline entry is located (in points).

Remarks

Most long Pdf documents contain an outline structure that is displayed on a pane on the left of the reader. The outline makes it easy to browse through a document's structure and find specific topics. The AddBookmark method allows you to build this outline structure by adding outline entries (bookmarks).

AddBookmark(string, int, double, bool)

Adds a bookmark to the current page.

Declaration
public void AddBookmark(string text, int level, double y, bool isOpen)
Parameters
Type Name Description
string text

Text that appears on the outline tree.

int level

Outline level (zero is the top level).

double y

Position on the current page where the outline entry is located (in points).

bool isOpen

Whether the children of the bookmark are initially visible.

AddBookmark(string, int, int, double)

Adds a bookmark to the specified page.

Declaration
public void AddBookmark(string text, int level, int page, double y)
Parameters
Type Name Description
string text

Text that appears on the outline tree.

int level

Outline level (zero is the top level).

int page

Index of the page that contains the bookmark.

double y

Position on the specified page where the outline entry is located (in points).

AddBookmark(string, int, string)

Adds a bookmark to the specified page.

Declaration
public void AddBookmark(string text, int level, string target)
Parameters
Type Name Description
string text

Text that appears on the outline tree.

int level

Outline level (zero is the top level).

string target

Exist target name of this document from AddTarget method.

See Also