Table of Contents

Class PdfLoadedNamedDestination

Namespace
Syncfusion.Pdf.Interactive
Assembly
Syncfusion.Pdf.Portable.dll

Represents the loaded named destination class.

public class PdfLoadedNamedDestination : PdfNamedDestination
Inheritance
PdfLoadedNamedDestination
Inherited Members

Examples

//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Get all the named destinations.
PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection;
//Get the first named destination
PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination;
//Get the destination
PdfDestination dest = namedDestination.Destination;
//Save and close the document
loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get all the named destinations.
Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection
'Get the first named destination
Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination)
'Get the destination
Dim destination As PdfDestination = namedDestination.Destination
'Save and close the document
loadedDocument.Save("Output.pdf")
loadedDocument.Close(True)

Properties

Destination

Gets or sets the named destination's destination.

public override PdfDestination Destination { get; set; }

Property Value

PdfDestination

The PdfDestination object which is to be navigated.

Examples

//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Get all the named destinations.
PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection;
//Get the first named destination
PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination;
//Get the destination
PdfDestination dest = namedDestination.Destination;
//Save and close the document
loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get all the named destinations.
Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection
'Get the first named destination
Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination)
'Get the destination
Dim destination As PdfDestination = namedDestination.Destination
'Save and close the document
loadedDocument.Save("Output.pdf")
loadedDocument.Close(True)

Remarks

The destination property has to be mentioned as multiples of 100. If we mention as 2, the zoom value will be 200.

See Also

Title

Gets or sets the named destination title.

public override string Title { get; set; }

Property Value

string

A string value which contains the named destination title

Examples

//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Get all the named destinations.
PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection;
//Get the first named destination
PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination;
//Get the named destination title.
string title = namedDestination.Title;
//Save and close the document
loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get all the named destinations.
Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection
'Get the first named destination
Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination)
'Get the named destination title.
 Dim title As String = namedDestination.Title
'Save and close the document
loadedDocument.Save("Output.pdf")
loadedDocument.Close(True)
See Also

See Also