alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class InitialPromptSettings

    The SmartPdfViewer is an AI-powered control that extends the Syncfusion.Blazor.SfPdfViewer. It allows for seamless interaction with PDF documents by incorporating AI-assisted functionalities.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    InitialPromptSettings
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(bool)
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnAfterRenderAsync(bool)
    SfBaseComponent.OnInitializedAsync()
    SfBaseComponent.OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicenseByUICategory()
    Namespace: Syncfusion.Blazor.SmartPdfViewer
    Assembly: Syncfusion.Blazor.SmartPdfViewer.dll
    Syntax
    public class InitialPromptSettings : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Examples
    <SfSmartPdfViewer Height="100%" width="100%">
       <AssistViewSettings>
          <InitialPromptSettings Prompt = "Explain this document."/>
       </AssistViewSettings>
    </SfSmartPdfViewer>

    Constructors

    InitialPromptSettings()

    Declaration
    public InitialPromptSettings()

    Properties

    PageEnd

    Gets or sets the ending page number for the document overview.

    Declaration
    [Parameter]
    public int PageEnd { get; set; }
    Property Value
    Type Description
    int

    An integer representing the ending page number. The default value is 10.

    Remarks

    This property works in the initial overview alone for better performance. Based on the document text, the AI token limit can be exceeded.

    Examples
    <SfSmartPdfViewer>
        <AssistViewSettings>
            <InitialPromptSettings PageEnd="1"/>
        </AssistViewSettings>
    </SfSmartPdfViewer>

    PageStart

    Gets or sets the starting page number for the document overview.

    Declaration
    [Parameter]
    public int PageStart { get; set; }
    Property Value
    Type Description
    int

    An integer representing the starting page number, starting from one.

    Remarks

    This property works in the initial overview alone for better performance.

    Examples
    <SfSmartPdfViewer>
        <AssistViewSettings>
            <InitialPromptSettings PageStart="1"/>
        </AssistViewSettings>
    </SfSmartPdfViewer>

    Prompt

    Gets or sets the current prompt text.

    Declaration
    [Parameter]
    public string Prompt { get; set; }
    Property Value
    Type Description
    string

    A string representing the prompt text.

    Examples
     <SfSmartPdfViewer>
        <AssistViewSettings>
             <InitialPromptSettings Prompt ="Search this document"/>
         </AssistViewSettings>
    </SfSmartPdfViewer>

    SuggestedPrompts

    Gets or sets the initial suggestions to be used in the Assist view of the PDF viewer. These suggestions help guide the AI's initial analysis or user interaction.

    Declaration
    [Parameter]
    public string[] SuggestedPrompts { get; set; }
    Property Value
    Type Description
    string[]

    A list of strings representing initial suggestions.

    Remarks

    Use the SuggestedPrompts property to provide predefined prompts that assist the AI in understanding the context or guiding the user. This can improve the relevance and efficiency of the AI responses, especially in structured document workflows.

    Examples

    The following example demonstrates how to specify initial suggestions for the AI Assist view:

    <SfSmartPdfViewer>
        <AssistViewSettings>
            <InitialPromptSettings SuggestedPrompts="@CustomSuggestion" />
        </AssistViewSettings>
    </SfSmartPdfViewer>

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    OnParametersSet()

    Executes when the parameters were set to this component

    Declaration
    protected override void OnParametersSet()
    Overrides
    ComponentBase.OnParametersSet()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved