PdfBookmarkEditor.CreateBookmarkOfPage

CreateBookmarkOfPage(string, int)

Creates bookmark for the specified page.

public void CreateBookmarkOfPage(string bookmarkName, int pageNumber)
ParameterTypeDescription
bookmarkNameStringThe specified bookmark name.
pageNumberInt32The specified desination page.

Examples

PdfBookmarkEditor editor = new PdfBookmarkEditor();
editor.BindPdf("example.pdf");
editor.CreateBookmarkOfPage("bookmark for page 1", 1);
editor.Save("example_out.pdf");

See Also


CreateBookmarkOfPage(string[], int[])

Creates bookmarks for the specified pages.

public void CreateBookmarkOfPage(string[] bookmarkName, int[] pageNumber)
ParameterTypeDescription
bookmarkNameString[]Bookmarks title array.
pageNumberInt32[]Bookmarks desination page array.

Examples

PdfBookmarkEditor editor = new PdfBookmarkEditor();
editor.BindPdf("example.pdf");
editor.CreateBookmarkOfPage("bookmark for page 1", 1);
editor.Save("example_out.pdf");

See Also