Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

PdfDocumentProcessor.CreateDestination(Int32, Single, Single) Method

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

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v20.2.dll

Declaration

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

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.

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateDestination(Int32, Single, Single) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also