Click or drag to resize
Pdf Library for .NET

PdfDestination Class

Represents a destination in a pdf document.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfDestination

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public class PdfDestination

The PdfDestination type exposes the following members.

Constructors
 NameDescription
Public methodPdfDestination(PdfPage) Constructs a pdf destination to the specified pdf page.
Public methodPdfDestination(PdfPage, PointF) Constructs a pdf destination to the specified location in the specified page.
Public methodPdfDestination(PdfPage, PointF, PdfDestinationFitMode) Constructs a destination to the specified location in the specified page and with the specified fit mode in the destination page.
Public methodPdfDestination(PdfPage, Single, Single) Constructs a pdf destination to the specified location in the specified page.
Public methodPdfDestination(PdfPage, Single, Single, PdfDestinationFitMode) Constructs a destination to the specified location in the specified page and with the specified fit mode in the destination page.
Top
Properties
 NameDescription
Public propertyFitMode Gets or sets the auto-fit mode in the destination page.
Public propertyLocation Gets or sets the location point in the destination page.
Public propertyPage Gets or sets the destination page.
Public propertyX Gets or sets the X coordinate of the location point in the destination page, in points.
Public propertyY Gets or sets the Y coordinate of the location point in the destination page, in points.
Public propertyZoomFactor Gets or sets the zoom factor of the destination page when viewed in a pdf viewer.
Top
Methods
 NameDescription
Public methodSetLocation Sets both the X and Y coordinates of the location point in the destination page.
Top
Remarks
The pdf destination is used by links, bookmarks or open actions to jump at a specified position in the pdf document.
Example
PdfDocument document = new PdfDocument();
PdfPage page = document.AddPage();
PdfDestination destination = new PdfDestination(page, 0, 100);
destination.FitMode = PdfDestinationFitMode.EntirePageWidth;
document.Bookmarks.Add("Top of page", destination);
document.Save("out.pdf");
document.Close();
See Also