PdfView Class

Definition

Show inherited members (279)

A .NET MAUI control that shows a PDF document on the shared viewer core, drawn with SkiaSharp: tiles render through SkiaTileBackend off the UI thread and are composed on the GPU (Metal on iOS and Mac Catalyst, OpenGL ES on Android through SkiaSharp.Views.Maui.Controls.SKGLView, Direct3D on Windows) unless UseHardwareAcceleration is off (a CPU raster canvas).

public sealed class PdfView : ContentView, INotifyPropertyChanged, IDynamicResourceHandler, IElementDefinition, INameScope, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IHandlerDisconnectPolicies, IStyleSelectable, INavigationProxy, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, IWindowController, IConstrainedView, IStylable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IControlsView, IControlsVisualElement, IControlsElement, ILayout, ILayoutController, IPaddingElement, IVisualTreeElement, IInputTransparentContainerElement, IControlTemplated, IClippedToBoundsElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, ISafeAreaView2, ISafeAreaElement, IViewerHost, IDisposable

Remarks

Touch, mouse, pen and wheel input go through one InputModel, so pan, fling, pinch and double-tap behave the same on every platform. Mouse drags over text select it (double click: word, triple: line); on touch a long press selects a word and handles extend it. Links and form fields go through the AnnotationLayer: links inside the document navigate, every other action (URIs, launches, scripts) is raised as ActionRequested and never performed. A tapped text or choice field opens a native editor over the widget; an edit redraws only the overlay tiles it touches. With UseBroadsideViewer(MauiAppBuilder) the view also takes keyboard input on desktops and hardware keyboards (arrows, Page Up/Down, Home/End, +/-, Tab between fields, Ctrl/Cmd+A and +C).

ISO 32000-2 §12.3.2 (destinations), §12.5.6.5 (link annotations), §12.7 (interactive forms), §14.8 and §14.11.2.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Fields (6)

Properties (12)

Methods (11)

Events (3)