Show bookmark

The Syncfusion® ASP.NET Core PDF Viewer can display the bookmark pane automatically by setting the enableBookmark property to true. Use this option when documents rely on bookmark navigation for quick access to chapters or tagged sections.

NOTE

The default value of enableBookmark is true, so the bookmark pane remains available unless it is explicitly disabled.

Follow these steps to show the bookmark pane:

Step 1: Create a PDF Viewer sample by using the ASP.NET Core getting started guide so that the required scripts, styles, and controller endpoints are configured.

Step 2: Enable the bookmark pane in the Razor markup, as shown in the following samples.

<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 in GitHub