PdfContentEditor.CreateBookmarksAction

PdfContentEditor.CreateBookmarksAction method

Creates a bookmark with the specified action.

public void CreateBookmarksAction(string title, Color color, bool boldFlag, bool italicFlag, 
    string file, string actionType, string destination)
ParameterTypeDescription
titleStringThe title of the bookmark.
colorColorThe colour of the bookmark’s title.
boldFlagBooleanThe flag of bold attribution.
italicFlagBooleanThe flag of italic attribution.
fileStringAnother file or application required when the action type is “GoToR” or “Launch”.
actionTypeStringThe action type. The value can be: “GoToR”, “Launch”, “GoTo”, “URI”.
destinationStringThe local destination or remote destination or URL.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateBookmarksAction("bookmark title",
    System.Drawing.Color.Red, true, true, null, "GoTo", 1/*page number*/);
editor.Save("example_out.pdf");

See Also