AvaloniaPdfViewer
AvaloniaPdfViewer copied to clipboard
A customizable control for viewing PDFs using Avalonia UI.
![]()
Avalonia PDF Viewer: A PDF viewer for Avalonia UI
Avalonia PDF Viewer in an Avalonia UI control for viewing PDF files.
✅ Features
- Cross-platform (Windows, macOS, Linux)
- PDF rendering using PDFium and SkiaSharp.
- Zooming and panning
- Page navigation
- Thumbnail view
🚀 Getting Started
Install the AvaloniaPdfViewer NuGet package.
dotnet add package AvaloniaPdfViewer
In your XAML file, add the following namespace:
xmlns:avaloniaPdfViewer="clr-namespace:AvaloniaPdfViewer;assembly=AvaloniaPdfViewer"
Add the PdfViewer control to your XAML file.
<avaloniaPdfViewer:PdfViewer Source="{Binding FilePath}"/>
❤️ Attribution
This library is built on top of these great open source projects.
- Avalonia (cross-platform UI framework for dotnet)
- PdfToImage (A .NET library to render PDF files into images.)
- material-design-icons (Google font icons)
⚖️ License
Avalonia PDF Viewer is licensed under the MIT License - see the LICENSE.md file for details.
HOWEVER, this project uses dependencies that are licensed under other licenses. Please check the licenses of the dependencies listed above before using this project.
🙁 Limitations
This control works by rendering the PDF pages into images. This means that features like text selection, search, and form filling are not and will never be supported.