alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class PdfViewerCustomStampSettings

    Represents the settings for custom stamps in a PDF viewer component in Blazor applications.

    Inheritance
    object
    PdfViewerAnnotationSettings
    PdfViewerShapeSettings
    PdfViewerHandwrittenSignatureSettings
    PdfViewerCustomStampSettings
    Inherited Members
    PdfViewerAnnotationSettings.AllowedInteractions
    PdfViewerAnnotationSettings.Author
    PdfViewerAnnotationSettings.ChildContent
    PdfViewerAnnotationSettings.CustomData
    PdfViewerAnnotationSettings.IsLock
    PdfViewerAnnotationSettings.IsPrint
    PdfViewerAnnotationSettings.jsProperty
    PdfViewerAnnotationSettings.mainParent
    PdfViewerAnnotationSettings.MaxHeight
    PdfViewerAnnotationSettings.MaxWidth
    PdfViewerAnnotationSettings.MinHeight
    PdfViewerAnnotationSettings.MinWidth
    PdfViewerAnnotationSettings.SkipDownload
    PdfViewerAnnotationSettings.SkipPrint
    PdfViewerHandwrittenSignatureSettings.Height
    PdfViewerHandwrittenSignatureSettings.SignatureDialogSettings
    PdfViewerHandwrittenSignatureSettings.Width
    PdfViewerShapeSettings.AnnotationSelectorSettings
    PdfViewerShapeSettings.BorderDashArray
    PdfViewerShapeSettings.FillColor
    PdfViewerShapeSettings.Opacity
    PdfViewerShapeSettings.StrokeColor
    PdfViewerShapeSettings.Thickness
    Namespace: Syncfusion.Blazor.SfPdfViewer
    Assembly: Syncfusion.Blazor.SfPdfViewer.dll
    Syntax
    public class PdfViewerCustomStampSettings : PdfViewerHandwrittenSignatureSettings
    Remarks

    This class provides functionality to manage and initialize settings for custom stamps in a PDF viewer, such as adding custom stamps to the menu, enabling custom stamp functionality, and maintaining a list of custom stamps. It ensures that the custom stamp settings are properly initialized and updated whenever parameters are set or changed.

    Examples

    Below is an example of how to use PdfViewerCustomStampSettings in a Blazor component:

    @code {
       public List<PdfViewerCustomStamp> pdfViewerCustomStamps = new List<PdfViewerCustomStamp>()
       {
           new PdfViewerCustomStamp()
           {
                CustomStampName = "Stamp",
                // Replace the 'ImageBase64' with the actual base64 string of the image.
                CustomStampImageSource ="ImageBase64"
            }
        };
    }

    Constructors

    PdfViewerCustomStampSettings()

    Declaration
    public PdfViewerCustomStampSettings()

    Properties

    CustomStamps

    Gets or sets a collection of custom stamps for the PDF Viewer.

    Declaration
    [Parameter]
    [JsonPropertyName("customStamps")]
    public List<PdfViewerCustomStamp> CustomStamps { get; set; }
    Property Value
    Type
    List<PdfViewerCustomStamp>

    EnableCustomStamp

    If it is set as false, then we can't add the custom stamp annoation in the PDF Viewer. By default it is true.

    Declaration
    [Parameter]
    [JsonPropertyName("enableCustomStamp")]
    public bool EnableCustomStamp { get; set; }
    Property Value
    Type
    bool

    IsAddToMenu

    Specifies to maintain the newly added custom stamp element in the menu items. By default it is false

    Declaration
    [Parameter]
    [JsonPropertyName("isAddToMenu")]
    public bool IsAddToMenu { get; set; }
    Property Value
    Type
    bool

    JsNamespace

    Declaration
    protected override string JsNamespace { get; set; }
    Property Value
    Type
    string
    Overrides
    PdfViewerHandwrittenSignatureSettings.JsNamespace

    JsProperty

    Declaration
    protected override string JsProperty { get; set; }
    Property Value
    Type
    string
    Overrides
    PdfViewerHandwrittenSignatureSettings.JsProperty

    MainParent

    Declaration
    protected override SfBaseComponent MainParent { get; set; }
    Property Value
    Type
    SfBaseComponent
    Overrides
    PdfViewerHandwrittenSignatureSettings.MainParent

    SfTagIndex

    Declaration
    protected override int SfTagIndex { get; set; }
    Property Value
    Type
    int
    Overrides
    PdfViewerHandwrittenSignatureSettings.SfTagIndex

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    Task
    Overrides
    PdfViewerHandwrittenSignatureSettings.OnInitializedAsync()

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    Task
    Overrides
    PdfViewerHandwrittenSignatureSettings.OnParametersSetAsync()
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved