Getting Started with the .NET MAUI PDF Viewer
This guide provides the information you need to start using the Telerik UI for .NET MAUI PDF Viewer by adding the control to your project.
At the end, you will be able to achieve the results from the first image on desktop platforms and the results from the second image on mobile platforms.
Prerequisites
Before adding the PDF Viewer, you need to:
Define the Control
1. When your .NET MAUI application is setup, you are ready to add a PDF Viewer control to your page.
2. Add the telerik
namespace:
3. Visualize the PDF document by setting the Source
property of the control:
4. Register the Telerik controls through the Telerik.Maui.Controls.Compatibility.UseTelerik
extension method called inside the CreateMauiApp
method of the MauiProgram.cs
file of your project:
The example above shows a PDF document visualized as an embedded resource. This is one of the options for loading a PDF with the RadPdfViewer
control.
For the runnable PDF Viewer Getting Started example, see the SDKBrowser Demo Application and go to PdfViewer > Getting Started.