menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfViewerCustomStampSettings - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfViewerCustomStampSettings

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

    Inheritance
    System.Object
    PdfViewerAnnotationSettings
    PdfViewerShapeSettings
    PdfViewerHandwrittenSignatureSettings
    PdfViewerCustomStampSettings
    Inherited Members
    PdfViewerAnnotationSettings.AllowedInteractions
    PdfViewerAnnotationSettings.Author
    PdfViewerAnnotationSettings.ChildContent
    PdfViewerAnnotationSettings.CustomData
    PdfViewerAnnotationSettings.GetJSNamespace()
    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
    PdfViewerShapeSettings.UpdateChildProperties(PdfViewerAnnotationSelectorSettings)
    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

    Declaration
    public List<PdfViewerCustomStamp> _customStamps { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<PdfViewerCustomStamp>

    CustomStamps

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

    Declaration
    public List<PdfViewerCustomStamp> CustomStamps { get; set; }
    Property Value
    Type
    System.Collections.Generic.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
    public bool EnableCustomStamp { get; set; }
    Property Value
    Type
    System.Boolean

    IsAddToMenu

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

    Declaration
    public bool IsAddToMenu { get; set; }
    Property Value
    Type
    System.Boolean

    JsNamespace

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

    JsProperty

    Declaration
    protected override string JsProperty { get; set; }
    Property Value
    Type
    System.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
    System.Int32
    Overrides
    PdfViewerHandwrittenSignatureSettings.SfTagIndex

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    OnInitializedAsync()

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

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Overrides
    PdfViewerHandwrittenSignatureSettings.OnParametersSetAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved