NamedDestination

NamedDestination

Overview

NamedDestination is a class in Aspose.PDF FOSS for .NET. Inherits from: Aspose.Pdf.Annotations.IAppointment.

Represents a named destination in the document (PDF32000 §12.3.2.3).

This class provides 8 methods for working with NamedDestination objects in .NET programs. Available methods include: CreateFitDestination, CreateFitHDestination, CreateFitRDestination, CreateFitVDestination, CreateXYZDestination, NamedDestination, ToString. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Bottom, Left, Name, PageIndex, PageNumber, Right, and 3 more.

Properties

NameTypeAccessDescription
NamestringReadThe destination name.
PageIndexintReadTarget page index (0-based), or -1 if not resolved.
PageNumberintReadTarget page number (1-based), or 0 if not resolved.
TypestringReadDestination type (“Fit”, “XYZ”, “FitH”, etc.).
Leftdouble?ReadLeft coordinate (for XYZ, FitV, FitR, FitBV), or null.
Topdouble?ReadTop coordinate (for XYZ, FitH, FitR, FitBH), or null.
Rightdouble?ReadRight coordinate (for FitR only), or null.
Bottomdouble?ReadBottom coordinate (for FitR only), or null.
Zoomdouble?ReadZoom factor (for XYZ only; null = inherit current).

Methods

SignatureDescription
NamedDestination(name: string)Create a named destination reference (name only, destination details resolved later).
NamedDestination(document: Document, name: string)Create a named destination reference scoped to a document.
CreateFitDestination(pageIndex: int)Create a /Fit destination: display the page scaled to fit entirely within the window.
CreateFitHDestination(pageIndex: int, top: double)Create a /FitH destination: display the page with vertical position top at the top of the window and magnification set to fit the width.
CreateFitVDestination(pageIndex: int, left: double)Create a /FitV destination: display the page with horizontal position left at the left of the window and magnification set to fit the height.
CreateXYZDestination(pageIndex: int, left: double, top: double, zoom: double)Create an /XYZ destination: display the page at position (left, top) with zoom factor zoom.
CreateFitRDestination(pageIndex: int, left: double, bottom: double, right: double, top: double)Create a /FitR destination: display the page zoomed to fit the rectangle specified by (left, bottom, right, top).
ToString()Human-readable representation of this appointment target.

See Also