| 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.NavigationAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.3.0+2e7887cb8ae45c4d911ad975ad001ac2f1f257d8
Syntax 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 Exception | Condition |
---|
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
ArgumentException | if the document associated with the target argument has already been closed |
ArgumentException | if the target argument belongs to a different document |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if name is . |
ArgumentNullException | if target is . |
See Also