Click or drag to resize
Pdftools logo

OutlineItemCreate Method

Create a new outline item (bookmark).

The returned outline item is not yet part of the outline item tree, but it is associated with the given target document. It can be inserted at any position in the tree.

Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.Navigation
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public static OutlineItem Create(
	Document targetDocument,
	string title,
	Destination destination
)

Parameters

targetDocument  Document
The output document with which the returned object is associated
title  String
The title of the newly created outline item.
destination  Destination
The destination that this outline item refers to or if the item has no destination.

Return Value

OutlineItem
The newly created outline item.
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
ArgumentExceptionif the document associated with the destination argument has already been closed
ArgumentExceptionif the destination argument belongs to a different document
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif title is .
See Also