# pdf-viewer-getting-started

> PDF viewer opens a document with the built-in toolbar and displays it in a simple viewer page.

**Framework:** maui  **Component:** PdfViewer  **Variant:** getting-started

## 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/maui/pdf-viewer-getting-started.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Maui.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-getting-started/PdfViewer.xaml

```xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:pdf="clr-namespace:Syncfusion.Maui.PdfViewer;assembly=Syncfusion.Maui.PdfViewer"
             xmlns:model="clr-namespace:MAUI.Controls.PdfViewer.GettingStarted"
             x:Class="MAUI.Controls.PdfViewer.GettingStarted.PdfViewerView"
             x:DataType="model:PdfViewerViewModel"
             Title="PDF Viewer - Getting Started">
    <Grid>
        <pdf:SfPdfViewer DocumentSource="{Binding DocumentStream}"
                         EnableTextSelection="True"
                         ShowToolbars="True" />
    </Grid>
</ContentPage>

```

### src/components/pdf-viewer-getting-started/PdfViewer.xaml.cs

```cs
namespace MAUI.Controls.PdfViewer.GettingStarted
{
    public partial class PdfViewerView : ContentPage
    {
        public PdfViewerView(PdfViewerViewModel viewModel)
        {
            InitializeComponent();
            BindingContext = viewModel;
        }
    }
}

```
