Show Bookmark

31 Oct 20231 minute to read

The PDF Viewer server library allows you to show the bookmark programmatically by setting the enableBookmark property to true. We can also disable the bookmark by setting the property to false.

NOTE

Default value of enableBookmark property is true.

The following steps are used to show the bookmark.

Step 1: Follow the steps provided in the link to create a simple PDF Viewer sample.

Step 2: Use the following code snippet to Show the Bookmark.

<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