Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfDestination Class

The base class for destinations – references to a page with specific view parameters.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

#Declaration

public abstract class PdfDestination :
    PdfObject

#Remarks

A destination includes the following view parameters:

  • The displayed document page
  • The location of the document window on this page
  • The magnification (zoom factor)

The table below lists available destinations and API used to create each type.

Destination View Parameters Class Method
FitB Fit the page’s bounding box into the document window. PdfFitBBoxDestination PdfPageFacade.CreateFitBBoxDestination
FitBH Fit the page’s bounding box into the document window horizontally. PdfFitBBoxHorizontallyDestination PdfPageFacade.CreateFitBBoxHorizontallyDestination
FitBV Fit the page’s bounding box into the document window vertically. PdfFitBBoxVerticallyDestination PdfPageFacade.CreateFitBBoxVerticallyDestination
Fit Fit the entire page into the document window. PdfFitDestination PdfPageFacade.CreateFitDestination
FitH Fit the entire page into the document window horizontally. PdfFitHorizontallyDestination PdfPageFacade.CreateFitHorizontallyDestination
FitV Fit the entire page into the document window vertically. PdfFitVerticallyDestination PdfPageFacade.CreateFitVerticallyDestination
FitR Display the specified page area in the document window. PdfFitRectangleDestination PdfPageFacade.CreateFitRectangleDestination
XYZ Position the specified page coordinate at the top left corner of the document window and specify the zoom factor. PdfXYZDestination PdfPageFacade.CreateXYZDestination

Use the PdfBookmark.Destination property to associate a bookmark with a destination. To create a link annotation associated with a destination, call the PdfPageFacade.AddLinkAnnotation method and pass a PdfDestination descendant object as a parameter. You can associate multiple bookmarks and link annotations with a destination.

See Also