Show bookmark

23 Oct 20251 minute to read

The Syncfusion® ASP.NET MVC 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 MVC 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 id="e-pv-e-sign-pdfViewer-div">
    @Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").EnableBookmark(true).Render()
</div>
<div id="e-pv-e-sign-pdfViewer-div">
    @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").EnableBookmark(true).Render()
</div>