# pdf-viewer-form-filling

> PDF viewer with interactive form fields for document data entry directly in the viewer.

**Framework:** blazor  **Component:** PdfViewer  **Variant:** form-filling

## 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/blazor/pdf-viewer-form-filling.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Blazor.SfPdfViewer
```

**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-form-filling/PdfViewer.razor

```razor
@page "/pdf-viewer/form-filling"
@namespace blazor.Components.Pages.FormFilling.FormFilling
@using Syncfusion.Blazor.SfPdfViewer

<div class="control-section" aria-label="PDF Viewer with form filling">
    <SfPdfViewer2 Height="640px" Width="100%" DocumentPath="@DocumentPath" EnableFormFieldsValidation="true">
    </SfPdfViewer2>
</div>

@code {
    // A sample PDF that contains fillable form fields.
    private string DocumentPath { get; set; } = "https://cdn.syncfusion.com/content/pdf/form-filling-document.pdf";
}

```
