Implementing .NET MAUI PDF Viewer
A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI PDF Viewer (SfPdfViewer) control. The PDF Viewer provides powerful document viewing and management capabilities including navigation, annotations, form filling, text operations, signatures, redaction, and printing with a built-in customizable toolbar.
When to Use This Skill
Use this skill when you need to:
- View and navigate PDF documents in .NET MAUI applications
- Load PDF documents from application‑provided streams or byte arrays.
- Unload documents to release memory and resources (synchronous/asynchronous methods)
- Add and manage annotations (ink, shapes, stamps, text markups, sticky notes)
- Fill and validate PDF form fields; import/export form data (XFDF, FDF, JSON, XML)
- Search and select text within PDF documents
- Add electronic signatures (handwritten, image-based, text)
- Redact sensitive content permanently
- Print PDF documents with quality settings
- Customize toolbars, appearance, and localization
- Migrate from Xamarin.Forms PDF Viewer to .NET MAUI
Component Overview
SfPdfViewer is a comprehensive PDF viewing and management control for .NET MAUI with these capabilities:
- Document Management: Load with password support, unload (sync/async) for memory management, save with flattening, print with quality settings
- Annotations: Ink, shapes, stamps, sticky notes, text markups, free text, eraser with full editing support
- Forms & Text: All AcroForm types, validation, import/export (XFDF/FDF/JSON/XML), async search, text selection
- Signatures & Redaction: Electronic signatures (handwritten/image/text), text/area/page-based redaction
- Navigation & UI: Page layouts, zoom, bookmarks, hyperlinks, customizable toolbar (desktop/mobile), localization, RTL, liquid glass effect
Documentation and Navigation Guide
Getting Started & Setup
📄 Read: references/basic-sample.md
- Installation, NuGet package, and handler registration (ConfigureSyncfusionCore)
- Basic PDF Viewer implementation (XAML & C#), DocumentSource binding
- Loading PDFs from different sources and platform-specific setup
Document Operations
📄 Read: references/document-operations.md
- Loading PDFs with password support
- Unloading documents (UnloadDocument, UnloadDocumentAsync) for proper memory management
- Saving with modifications and annotation flattening
- Printing with quality settings and page range selection
Annotations
📄 Read: references/annotations.md
- Adding/removing annotations (AddAnnotation, RemoveAnnotation)
- Ink, shapes, stamps, sticky notes, text markups, free text, ink eraser
- Annotation properties (color, opacity, bounds, stroke, rotation) and events
Form Fields
📄 Read: references/form-fields.md
- Viewing, accessing, and filling all AcroForm field types
- Field validation, import/export (XFDF, FDF, JSON, XML), flattening
- Form field events and interaction handling
Navigation & Viewing
📄 Read: references/viewing.md
- Page navigation (GoToPage, PageNumber), layout modes (Single, Continuous)
- Bookmarks, hyperlinks, zoom (ZoomMode, ZoomFactor), FitMode options
- Coordinate conversion (PageToClient, ClientToPage)
Text Search
📄 Read: references/text-search.md
- Async text search (SearchTextAsync), match navigation (GoToNextMatch, GoToPreviousMatch)
- Search highlighting, case-sensitive/whole-word options, custom search UI
Text Selection
📄 Read: references/text-selection.md
- Enabling text selection, SelectedText property, clipboard copy
- Selection customization (colors, opacity), TextSelectionChanged event
Electronic Signatures
📄 Read: references/electronic-signature.md
- Handwritten, image-based, and text signatures
- Signature field management, appearance customization, validation workflows
Redaction
📄 Read: references/redaction.md
- Text/area/page-based redaction (RedactText, RedactArea, RedactPage)
- Permanent content removal, appearance customization, saving redacted documents
Toolbar Customization
📄 Read: references/toolbar-customization.md
- Desktop vs mobile toolbar layouts
- Add/remove/hide/reorder toolbar items, AnnotationToolbarItemClicked event
- Custom toolbar creation and visibility control
UI Settings & Localization
📄 Read: references/ui-settings.md
- Localization, FlowDirection for RTL layouts, culture-specific formatting
- Liquid glass effect, theme customization, platform-specific UI adjustments
Gesture Events & Interaction
📄 Read: references/gesture-events.md
- DocumentTapped event with PageNumber and Position
- Touch gesture handling, custom interactions, event-driven workflows
Migration from Xamarin
📄 Read: references/migration-xamarin-to-maui.md
- API differences, property/method mappings, namespace changes
- Handler registration differences, breaking changes, migration checklist
1---2name: syncfusion-maui-pdf-viewer3description: Implements Syncfusion .NET MAUI SfPdfViewer for cross-platform PDF viewing, navigation, annotations, form filling/validation, text search/selection, e-signatures, redaction, printing, and toolbar/UI customization. Use when working with PDF viewer setup, document annotations, form fields, or signature workflows in MAUI apps.4---56# Implementing .NET MAUI PDF Viewer78A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI PDF Viewer (SfPdfViewer) control. The PDF Viewer provides powerful document viewing and management capabilities including navigation, annotations, form filling, text operations, signatures, redaction, and printing with a built-in customizable toolbar.910## When to Use This Skill1112Use this skill when you need to:13- View and navigate PDF documents in .NET MAUI applications14- Load PDF documents from application‑provided streams or byte arrays.15- Unload documents to release memory and resources (synchronous/asynchronous methods)16- Add and manage annotations (ink, shapes, stamps, text markups, sticky notes)17- Fill and validate PDF form fields; import/export form data (XFDF, FDF, JSON, XML)18- Search and select text within PDF documents19- Add electronic signatures (handwritten, image-based, text)20- Redact sensitive content permanently21- Print PDF documents with quality settings22- Customize toolbars, appearance, and localization23- Migrate from Xamarin.Forms PDF Viewer to .NET MAUI2425## Component Overview2627**SfPdfViewer** is a comprehensive PDF viewing and management control for .NET MAUI with these capabilities:2829- **Document Management:** Load with password support, unload (sync/async) for memory management, save with flattening, print with quality settings30- **Annotations:** Ink, shapes, stamps, sticky notes, text markups, free text, eraser with full editing support31- **Forms & Text:** All AcroForm types, validation, import/export (XFDF/FDF/JSON/XML), async search, text selection32- **Signatures & Redaction:** Electronic signatures (handwritten/image/text), text/area/page-based redaction33- **Navigation & UI:** Page layouts, zoom, bookmarks, hyperlinks, customizable toolbar (desktop/mobile), localization, RTL, liquid glass effect3435## Documentation and Navigation Guide3637### Getting Started & Setup38📄 **Read:** [references/basic-sample.md](references/basic-sample.md)39- Installation, NuGet package, and handler registration (ConfigureSyncfusionCore)40- Basic PDF Viewer implementation (XAML & C#), DocumentSource binding41- Loading PDFs from different sources and platform-specific setup4243### Document Operations44📄 **Read:** [references/document-operations.md](references/document-operations.md)45- Loading PDFs with password support46- Unloading documents (UnloadDocument, UnloadDocumentAsync) for proper memory management47- Saving with modifications and annotation flattening48- Printing with quality settings and page range selection4950### Annotations51📄 **Read:** [references/annotations.md](references/annotations.md)52- Adding/removing annotations (AddAnnotation, RemoveAnnotation)53- Ink, shapes, stamps, sticky notes, text markups, free text, ink eraser54- Annotation properties (color, opacity, bounds, stroke, rotation) and events5556### Form Fields57📄 **Read:** [references/form-fields.md](references/form-fields.md)58- Viewing, accessing, and filling all AcroForm field types59- Field validation, import/export (XFDF, FDF, JSON, XML), flattening60- Form field events and interaction handling6162### Navigation & Viewing63📄 **Read:** [references/viewing.md](references/viewing.md)64- Page navigation (GoToPage, PageNumber), layout modes (Single, Continuous)65- Bookmarks, hyperlinks, zoom (ZoomMode, ZoomFactor), FitMode options66- Coordinate conversion (PageToClient, ClientToPage)6768### Text Search69📄 **Read:** [references/text-search.md](references/text-search.md)70- Async text search (SearchTextAsync), match navigation (GoToNextMatch, GoToPreviousMatch)71- Search highlighting, case-sensitive/whole-word options, custom search UI7273### Text Selection74📄 **Read:** [references/text-selection.md](references/text-selection.md)75- Enabling text selection, SelectedText property, clipboard copy76- Selection customization (colors, opacity), TextSelectionChanged event7778### Electronic Signatures79📄 **Read:** [references/electronic-signature.md](references/electronic-signature.md)80- Handwritten, image-based, and text signatures81- Signature field management, appearance customization, validation workflows8283### Redaction84📄 **Read:** [references/redaction.md](references/redaction.md)85- Text/area/page-based redaction (RedactText, RedactArea, RedactPage)86- Permanent content removal, appearance customization, saving redacted documents8788### Toolbar Customization89📄 **Read:** [references/toolbar-customization.md](references/toolbar-customization.md)90- Desktop vs mobile toolbar layouts91- Add/remove/hide/reorder toolbar items, AnnotationToolbarItemClicked event92- Custom toolbar creation and visibility control9394### UI Settings & Localization95📄 **Read:** [references/ui-settings.md](references/ui-settings.md)96- Localization, FlowDirection for RTL layouts, culture-specific formatting97- Liquid glass effect, theme customization, platform-specific UI adjustments9899### Gesture Events & Interaction100📄 **Read:** [references/gesture-events.md](references/gesture-events.md)101- DocumentTapped event with PageNumber and Position102- Touch gesture handling, custom interactions, event-driven workflows103104### Migration from Xamarin105📄 **Read:** [references/migration-xamarin-to-maui.md](references/migration-xamarin-to-maui.md)106- API differences, property/method mappings, namespace changes107- Handler registration differences, breaking changes, migration checklist