# pdfviewer-pdf-viewer-bookmark

> PdfViewer that parses the document bookmarks tree and exposes navigation actions that jump to the matching page on click.

**Framework:** winforms  **Component:** PdfViewer  **Variant:** pdf-viewer-bookmark

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/winforms/pdfviewer-pdf-viewer-bookmark.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.PdfViewer.Windows
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/pdfviewer-pdf-viewer-bookmark/pdfviewer.Designer.cs

```cs
namespace PdfViewerBookmark
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.panel1 = new System.Windows.Forms.Panel();
            this.pdfViewerControl1 = new Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl();
            this.SuspendLayout();
            //
            // panel1
            //
            this.panel1.AutoSize = true;
            this.panel1.BackColor = System.Drawing.Color.White;
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(529, 0);
            this.panel1.TabIndex = 0;
            //
            // pdfViewerControl1
            //
            this.pdfViewerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pdfViewerControl1.EnableNotificationBar = true;
            this.pdfViewerControl1.Location = new System.Drawing.Point(0, 0);
            this.pdfViewerControl1.Name = "pdfViewerControl1";
            this.pdfViewerControl1.ShowToolBar = true;
            this.pdfViewerControl1.Size = new System.Drawing.Size(529, 307);
            this.pdfViewerControl1.TabIndex = 3;
            this.pdfViewerControl1.Text = "pdfViewerControl1";
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(529, 307);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.pdfViewerControl1);
            this.Icon = new System.Drawing.Icon(PdfViewerBookmarkDataSource.GetIconPath("Icon.ico"));
            this.Name = "Form1";
            this.Text = "PdfViewer Bookmark";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.Load += new System.EventHandler(this.Form1_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion
        private System.Windows.Forms.Panel panel1;
        private Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl pdfViewerControl1;
    }
}

```

### src/components/pdfviewer-pdf-viewer-bookmark/pdfviewer.cs

```cs
using System;
using System.Windows.Forms;

namespace PdfViewerBookmark
{
    /// <summary>
    /// Shows a PDF document that contains bookmarks (outlines) in the
    /// Syncfusion PDF viewer.
    /// </summary>
    public partial class Form1 : Form
    {
        #region Constructor
        public Form1()
        {
            InitializeComponent();
        }
        # endregion

        # region Events
        private void Form1_Load(object sender, EventArgs e)
        {
            string documentPath = PdfViewerBookmarkDataSource.GetDocumentPath();
            if (System.IO.File.Exists(documentPath))
            {
                pdfViewerControl1.Load(documentPath);
            }
        }

        #endregion

        #region Helper Methods
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            pdfViewerControl1.Dispose();
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
        #endregion
    }
}

```
