Click or drag to resize
Pdftools logo

NamedDestinationCreate Method

Create a named destination

The returned object is not yet used on any page, but it is associated with the given target document.

Namespace: PdfTools.Toolbox.Pdf.Navigation
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.0.0+fdabb036503e9f99735634a6d4f5be875399e9f5
Syntax
C#
public static NamedDestination Create(
	Document targetDocument,
	string name,
	DirectDestination target
)

Parameters

targetDocument  Document
The output document with which the returned object is associated
name  String
The name by which the destination is referred to.
target  DirectDestination
The target destination

Return Value

NamedDestination
The newly created named destination.
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
ArgumentExceptionif the document associated with the target argument has already been closed
ArgumentExceptionif the target argument belongs to a different document
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif name is .
ArgumentNullExceptionif target is .
See Also