Class SmartFillSettings
Configures settings for the Smart Fill feature in the Smart PDF Viewer. This class allows users to manage, enable, and execute smart form fill operations, leveraging AI to automate the population of PDF form fields based on clipboard or specified data.
Inheritance
Namespace: Syncfusion.Blazor.SmartPdfViewer
Assembly: Syncfusion.Blazor.SmartPdfViewer.dll
Syntax
public class SmartFillSettings : SfBaseComponent
Remarks
SmartFillSettings
provides all options and execution hooks for integrating AI-powered, context-aware document filling into a PDF viewer workflow.
Examples
The following example demonstrates how to declare smart fill settings for the PDF viewer:
<SfSmartPdfViewer>
<SmartFillSettings />
</SfSmartPdfViewer>
Constructors
SmartFillSettings()
Declaration
public SmartFillSettings()
Properties
ChildContent
Renders the child element
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
Enable
Gets or sets a value indicating whether the Smart Fill feature is enabled in the PDF viewer.
When set to true
, the Smart Fill button is visible in the toolbar. When set to false
, the button is hidden, and all related functionality is inaccessible.
Declaration
public bool Enable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Use the Enable
property to control both visibility and readiness of the Smart Fill capability.
Even if enabled, the Smart Fill button remains disabled unless loaded PDF document contains form fields.
These constraints ensure robust and accurate AI-driven data mapping for form completion and prevent ambiguous filling.
Examples
The following example enables Smart Fill and displays the button in the toolbar:
<SfSmartPdfViewer>
<SmartFillSettings Enable="false" />
</SfSmartPdfViewer>
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
OnParametersSet()
Called when the parameters are set for the component.
Declaration
protected override void OnParametersSet()