Click or drag to resize
Pdf Library for .NET

PdfBookmarksCollectionAdd(String, PdfDestination) Method

Adds a new bookmark to the bookmarks collection.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfBookmark Add(
	string text,
	PdfDestination destination
)

Parameters

text  String
The bookmark text.
destination  PdfDestination
The bookmark destination.

Return Value

PdfBookmark
The newly created pdf bookmark.
Example
PdfDestination destination = new PdfDestination(document.Pages[0], 0, 0);
PdfBookmark bookmark = document.Bookmarks.Add("Chapter 1", destination);
See Also