Tritium UI
TritiumPdfViewer
Open a PDF, page through it, search, fill forms, annotate, and save the markup.
Key features
- Load from a file, byte array, or stream, and move to a page.
- Fit the width, fit the page, or set a custom zoom.
- Scroll one page at a time or continuously in a vertical stack.
- Show thumbnails and a find bar, then jump to the next or previous hit.
- Ask for a password or a recipient certificate when the file needs one.
- Highlight, underline, ink, sticky notes, stamps, and free text, then save the annotations.
- Mark redactions and export a redacted copy.
- Fill AcroForm text, checkboxes, radio buttons, and choice fields, including multi-select, and save an incremental copy.
- Raise DocumentLoaded, DocumentLoadFailed, and SearchCompleted.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).
Main API
- Source . The PDF to open (file, bytes, or stream via the load methods).
- PageNumber . The current 1-based page; PageCount is the document length.
- ZoomMode . FitWidth, FitPage, or Custom (with ZoomFactor).
- AnnotationMode . None, highlight, underline, ink, select, note, stamp, free text, or redact.
Basic example
Declare this namespace on the page.
xmlns:pdf="clr-namespace:Tritium.Maui.Pdf;assembly=Tritium.Maui.Pdf"
<pdf:TritiumPdfViewer x:Name="Viewer"
ZoomMode="FitWidth"
ShowThumbnails="True"
DocumentLoaded="OnDocumentLoaded" /> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.