Skip to main content
All docs
V25.1
  • PdfExportOptions.ExportBookmarks Property

    Specifies whether to include bookmarks to the exported document.

    Namespace: DevExpress.XtraPrinting

    Assembly: DevExpress.Printing.v25.1.Core.dll

    NuGet Package: DevExpress.Printing.Core

    Declaration

    [DefaultValue(true)]
    public bool ExportBookmarks { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true to add bookmarks to the exported document; otherwise, false.

    Property Paths

    You can access this nested property as listed below:

    Library Object Type Path to ExportBookmarks
    Cross-Platform Class Library ExportOptions
    .Pdf .ExportBookmarks
    WinForms Controls DiagramOptionsExport
    .PdfExportOptions .ExportBookmarks
    WPF Controls DiagramControl
    .PdfExportOptions .ExportBookmarks

    Remarks

    The following code snippet excludes bookmarks from the exported document when exporting a report to PDF:

    using DevExpress.XtraPrinting;
    // ...
    private void simpleButton1_Click(object sender, EventArgs e) {
        var report = new XtraReport1();
        report.ExportOptions.Pdf.ExportBookmarks = false;
        report.ExportToPdf("test.pdf");
    }
    

    Note

    ExportBookmarks is not in effect for the RichEdit suite. Specify the BookmarkOptions.DisplayBookmarksInPdfNavigationPane property value instead.

    See Also