# Document Model

The model of the PDF document in PdfViewer is represented by the `RadFixedDocument` class.

> `RadFixedDocument` is part of the [RadPdfProcessing](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview) library.

The following example shows how to create a `RadFixedDocument` and insert content by using the [`RadFixedDocumentEditor`](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/radfixeddocumenteditor) class. After the document object is created, render it by using the `Document` property of the `RadPdfViewer`. This result is similar to the one when you assign the `DocumentSource` property of the `RadPdfViewer`, but on a more complex scale.

#### **Create and show a PDF document**

```C#
RadFixedDocument document = new RadFixedDocument();
using (RadFixedDocumentEditor editor = new RadFixedDocumentEditor(document))
{
	editor.InsertRun("Hello PDF!");
}    
this.pdfViewer.Document = document;
```

The fixed document contains a list of [`RadFixedPage`](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/model/radfixedpage) objects that contain information about each page in the document. To access them, use the `Pages` property of `RadFixedDocument`.

## See Also

* [Getting Started with the Telerik UI for WinUI PdfViewer](https://www.telerik.com/winui/documentation/controls/radpdfviewer/getting-started)
* [Opening Files](https://www.telerik.com/winui/documentation/controls/radpdfviewer/file-operations/open-files)
* [Text Selection](https://www.telerik.com/winui/documentation/controls/radpdfviewer/user-interaction/text-selection)
