.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfBookmark.Destination Property

Gets or sets a destination (a particular view of a document) to which a bookmark is referred to.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v21.1.Core.dll


public PdfDestination Destination { get; set; }

Property Value

Type Description

A PdfDestination object that is a bookmark destination.


The Destination property specifies a destination that shows a particular document view after the bookmark is clicked in the navigation panel. You can create a bookmark destination in the PDF Document Processor by calling one of the overloaded PdfDocumentProcessor.CreateDestination methods.

To specify a bookmark title, use the PdfBookmark.Title property.

To learn more about the bookmarks creation, see the Bookmarks topic.


This example shows how to create bookmarks in code.

To do this:

using DevExpress.Pdf;

namespace AddBookmarks {
    class Program {
        static void Main(string[] args) {

            using (PdfDocumentProcessor processor = new PdfDocumentProcessor()) {

                // Load a document.

                // Create bookmarks and add them to the PDF document.
                PdfDestination destination1 = processor.CreateDestination(1, 180, 150);
                PdfDestination destination2 = processor.CreateDestination(1, 168, 230);
                PdfDestination destination3 = processor.CreateDestination(1, 20, 350);
                processor.Document.Bookmarks.Add(new PdfBookmark() { Title = "PDF Document Processor", Destination = destination1 });
                processor.Document.Bookmarks.Add(new PdfBookmark() { Title = "Display, Print and Export PDF Documents", Destination = destination2 });
                processor.Document.Bookmarks.Add(new PdfBookmark() { Title = "Learn More", Destination = destination3 });

                // Save the result document.
See Also