Smart Fill in Blazor Smart PDF Viewer

1 Sep 20251 minute to read

This feature streamlines the process of completing PDF forms. The AI analyzes the document and user-provided input to automatically populate relevant fields, reducing manual effort and minimizing errors. Users can review and adjust the filled fields to ensure the final output meets their requirements.

Smart Fill

Component Usage

Add the following code in your ~Pages/Home.razor file to check or utilize the Smart Fill feature in Smart PDF Viewer.

@* Enables AI-powered automatic form filling to reduce manual input and improve accuracy *@

<SfSmartPdfViewer DocumentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf">
     <SmartFillSettings/>
</SfSmartPdfViewer>

NOTE

View sample in GitHub

Smart Fill Settings in Syncfusion Blazor Smart PDF Viewer

  • The SmartFillSettings class configures settings for the Smart Fill feature in the Smart PDF Viewer. This feature leverages AI to automate the population of PDF form fields based on clipboard or specified data.

  • SmartFillSettings provides all options and execution hooks for integrating AI-powered, context-aware document filling into a PDF viewer workflow.

SmartFillSettings Parameter

Enable

  • The Enable determines whether the Smart Fill button is shown in the toolbar and whether the feature is accessible. The default value is true.
  • The button remains inactive unless the loaded PDF document contains form fields.
  • Helps maintain a clean and intuitive UI by hiding the feature when it’s not applicable.
  • Can be dynamically toggled based on user roles, document content, or application logic.
@* Controls visibility and accessibility of the Smart Fill feature based on document content or app logic *@

<SfSmartPdfViewer DocumentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf">
    <SmartFillSettings Enable="false" />
</SfSmartPdfViewer>

Integration

To integrate Smart Fill into your PDF viewer workflow, include the SmartFillSettings component within the SfSmartPdfViewer tag. Ensure that your PDF documents contain form fields to utilize the AI-powered filling capabilities.

See also