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

PdfDocumentProcessor.CreateDestination(Int32, Single, Single, Single, Single) Method

Creates a destination for targets in the document (e.g., bookmarks) using a page number, page coordinates, and DPI.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

public PdfDestination CreateDestination(
    int pageNumber,
    float x,
    float y,
    float dpiX,
    float dpiY
)

#Parameters

Name Type Description
pageNumber Int32

An integer value that is the page number where the destination is created.

x Single

A Single object that is the horizontal page coordinate value.

y Single

A Single object that is the vertical page coordinate value.

dpiX Single

A Single object that is the value, in dots per inch, for the horizontal resolution.

dpiY Single

A Single object that is the value, in dots per inch, for the vertical resolution.

#Returns

Type Description
PdfDestination

A PdfDestination object that is the page destination.

#Remarks

The overloaded CreateDestination method converts world coordinates to page coordinates. See the Coordinate Systems topic to learn more.

Use this method to create a destination that points to a specific location and view in a document. The created destination is assigned to the PdfBookmark.Destination property.

For more information about the bookmarks creation, see the Bookmarks topic.

See Also