Class SfSmartPdfViewer
Initializes a new instance of the SfSmartPdfViewer class and sets up the default configuration required for PDF viewing, navigation, form interaction, and Smart AI-powered features.
Implements
Inherited Members
Namespace: Syncfusion.Maui.SmartPdfViewer
Assembly: Syncfusion.Maui.SmartPdfViewer.dll
Syntax
public class SfSmartPdfViewer : SfPdfViewer, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, ITouchListener, IThemeElement
Constructors
SfSmartPdfViewer()
Initializes a new instance of the SfSmartPdfViewer class and sets up the default configuration required for PDF viewing, navigation, form interaction, and Smart AI-powered features.
Declaration
public SfSmartPdfViewer()
Fields
AssistViewSettingsProperty
Backing store for AssistViewSettings property.
Declaration
public static readonly BindableProperty AssistViewSettingsProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
IsAIAssistViewVisibleProperty
Backing store for IsAIAssistViewVisible.
Declaration
public static readonly BindableProperty IsAIAssistViewVisibleProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
IsSmartRedactViewVisibleProperty
Backing store for IsSmartRedactViewVisible.
Declaration
public static readonly BindableProperty IsSmartRedactViewVisibleProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SmartFillSettingsProperty
Backing store for SmartFillSettings property.
Declaration
public static readonly BindableProperty SmartFillSettingsProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SmartRedactSettingsProperty
Backing store for SmartRedactSettings property.
Declaration
public static readonly BindableProperty SmartRedactSettingsProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
AssistViewSettings
Initializes the Assist View settings and configures the default properties, behaviors, and resources required for Assist View functionality.
Declaration
public AssistViewSettings AssistViewSettings { get; set; }
Property Value
| Type |
|---|
| AssistViewSettings |
IsAIAssistViewVisible
Gets or sets a value indicating whether the AI Assist View panel is visible in the Smart PDF Viewer.
Declaration
public bool IsAIAssistViewVisible { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Remarks
When set to true, the Assist View panel is displayed, allowing users to
interact with AI-powered document assistance features such as document summaries,
question answering, and contextual document analysis.
When set to false, the Assist View panel is hidden from view.
This property controls only the visibility of the Assist View panel and does not
disable the underlying Assist View functionality or settings.
IsSmartRedactViewVisible
Gets or sets a value indicating whether the Smart Redaction panel is visible in the Smart PDF Viewer.
Declaration
public bool IsSmartRedactViewVisible { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Remarks
When set to true, the Smart Redaction panel is displayed and users can access
AI-assisted redaction tools directly from the viewer interface.
When set to false, the Smart Redaction panel is hidden from view.
This property controls only the visibility of the panel and does not affect
the Smart Redaction feature availability or configuration.
SmartFillSettings
Initializes a new instance of the SmartFillSettings class and configures the default settings required for the Smart Fill feature.
Declaration
public SmartFillSettings SmartFillSettings { get; set; }
Property Value
| Type |
|---|
| SmartFillSettings |
SmartRedactSettings
Initializes a new instance of the SmartRedactSettings class and configures the default settings required for Smart Redaction functionality.
Declaration
public SmartRedactSettings SmartRedactSettings { get; set; }
Property Value
| Type |
|---|
| SmartRedactSettings |
Methods
ApplySmartFillAsync(String, CancellationToken)
Initiates the Smart Fill process using the specified string data instead of clipboard content.
Declaration
public Task ApplySmartFillAsync(string data, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | data | Specifies the custom text input used by the AI to identify and populate matching form fields in the loaded PDF document. |
| System.Threading.CancellationToken | cancellationToken | Specifies a token that can be used to cancel the Smart Fill operation. |
Returns
| Type |
|---|
| System.Threading.Tasks.Task |
Remarks
The operation can be cancelled while it is in progress.
ApplySmartFillAsync(CancellationToken)
Initiates the Smart Fill process using the extracted form field names and the current clipboard data.
Declaration
public Task ApplySmartFillAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | Specifies a token that can be used to cancel the Smart Fill operation. |
Returns
| Type |
|---|
| System.Threading.Tasks.Task |
Remarks
When executed, this method uses AI to analyze the clipboard content and map the extracted values to the corresponding form fields in the loaded PDF document. The operation can be cancelled while it is in progress.
Dispose()
Disposes the Smart PDF Viewer and its associated resources and dependencies.
Declaration
public void Dispose()
GetPrompts()
Returns the list of prompts available in the Assist View.
Declaration
public IReadOnlyList<AssistItem> GetPrompts()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<AssistItem> | A list of prompts available in the Assist View. |