# pdf-viewer-annotations

> PDF viewer pre-populated with highlight and underline annotations on page one.

**Framework:** aspnet-core  **Component:** PdfViewer  **Variant:** annotations

## 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/aspnet-core/pdf-viewer-annotations.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.AspNetCore.PdfViewer
```

**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/pdf-viewer-annotations/pdf-viewer.cshtml

```cshtml
@page
@namespace aspnet_core.PdfViewer.Annotations
@using Syncfusion.EJ2

    <div class="control-section">
        <ejs-pdfviewer
            id="pdfviewer"
            documentPath="https://cdn.syncfusion.com/content/pdf/annotations-v2.pdf"
            resourceUrl="https://cdn.syncfusion.com/ej2/35.1.37/dist/ej2-pdfviewer-lib"
            enableAnnotationToolbar="true"
            enableTextSelection="true"
            isCommandPanelOpen="true"
            style="height:641px;">
        </ejs-pdfviewer>
    </div>

```
