Display the bookmark pane in ASP.NET Core PDF Viewer

28 Feb 20261 minute to read

Enable automatic display of the bookmark navigation pane by setting the enableBookmark property to true. Use bookmarks to provide quick navigation for documents with chapters, sections, or hierarchical content organization.

NOTE

By default, enableBookmark is set to true, so the bookmark pane is visible unless explicitly disabled.

Follow these steps to enable the bookmark pane:

Step 1: Follow the ASP.NET Core PDF Viewer getting started guide to set up the required scripts, styles, and controller endpoints.

Step 2: Set enableBookmark to true in the Razor markup:

<div style="width:100%;height:600px">
    <ejs-pdfviewer id="pdfviewer"
                   documentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
                   enableBookmark="true">
    </ejs-pdfviewer>
</div>
<div style="width:100%;height:600px">
    <ejs-pdfviewer id="pdfviewer"
                   serviceUrl='/Index'
                   documentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
                   enableBookmark="true">
    </ejs-pdfviewer>
</div>

View sample on GitHub