New to Telerik UI for WinUI? Download free 30-day trial

Document Model

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

RadFixedDocument is part of the RadPdfProcessing library.

The following example shows how to create a RadFixedDocument and insert content using the RadFixedDocumentEditor class. After the document object was created you can render it using the Document property of RadPdfViewer. This is what happens when you assign the DocumentSource property of RadPdfViewer, but on a more complex scale.

Create a PDF document and show it

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 objects that contains information about each page in the document. To access them, use the Pages property of RadFixedDocument.

See Also

In this article
Not finding the help you need?