Click or drag to resize
Pdf Library for .NET

PdfDocumentAddBookmark(String, PdfDestination) Method

Adds a new bookmark to the document outline. Shorthand for doc.Bookmarks.Add(text, destination).

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

Parameters

text  String
The label shown for the bookmark in the reader's outline pane.
destination  PdfDestination
The location the bookmark jumps to when clicked.

Return Value

PdfBookmark
The newly created PdfBookmark.
See Also