Click or drag to resize
Pdf Library for .NET

PdfBookmarksCollectionInsert(Int32, String, Int32, Single, Single) Method

Convenience overload — inserts a new bookmark at the specified index targeting a specific position on a specific page.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfBookmark Insert(
	int index,
	string text,
	int pageIndex,
	float x,
	float y
)

Parameters

index  Int32
The zero based index where to insert the bookmark.
text  String
The bookmark text.
pageIndex  Int32
Zero-based index of the destination page.
x  Single
X coordinate on the destination page, in points (origin at top-left).
y  Single
Y coordinate on the destination page, in points (positive going down).

Return Value

PdfBookmark
The newly created pdf bookmark.
See Also