GetNamedDestination(String) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Looks up the destination a name (PDF 1.1) or string (PDF 1.2) names, as text.

public PdfExplicitDestination? GetNamedDestination(string name)

Parameters

name
String

The destination's name.

Returns

PdfExplicitDestination
The explicit destination; null when the document has none of that name, or, with a diagnostic, when the value it has is not a destination.

Remarks

ISO 32000-2 §12.3.2.4. The name dictionary's Dests tree first (the text as PDFDocEncoding, then UTF-16BE, then every key decoded: TryGetValue(String, out CosObject)), then the catalog's Dests dictionary (the text as a UTF-8 name). A value that is a dictionary resolves to its D entry.