Xamarin.iOS

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedSignatureField - Xamarin.iOS API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedSignatureField

    Represents the signature field of an existing PDF document.

    Inheritance
    System.Object
    PdfField
    PdfLoadedField
    PdfLoadedStyledField
    PdfLoadedSignatureField
    Inherited Members
    PdfLoadedStyledField.GetGraphicsProperties(PdfLoadedStyledField.GraphicsProperties, PdfLoadedFieldItem)
    PdfLoadedStyledField.DefineDefaultAppearance()
    PdfLoadedStyledField.StyleToString(PdfCheckBoxStyle)
    PdfLoadedStyledField.MouseEnter
    PdfLoadedStyledField.MouseUp
    PdfLoadedStyledField.MouseDown
    PdfLoadedStyledField.MouseLeave
    PdfLoadedStyledField.GotFocus
    PdfLoadedStyledField.LostFocus
    PdfLoadedStyledField.Bounds
    PdfLoadedStyledField.Location
    PdfLoadedStyledField.Size
    PdfLoadedStyledField.BorderStyle
    PdfLoadedStyledField.BorderColor
    PdfLoadedStyledField.BorderWidth
    PdfLoadedStyledField.Font
    PdfLoadedStyledField.DefaultIndex
    PdfLoadedStyledField.Visible
    PdfLoadedStyledField.Visibility
    PdfLoadedField.ObjectID
    PdfLoadedField.SetName(String)
    PdfLoadedField.Name
    PdfLoadedField.MappingName
    PdfLoadedField.ToolTip
    PdfLoadedField.Page
    PdfLoadedField.ReadOnly
    PdfLoadedField.Required
    PdfLoadedField.Export
    PdfLoadedField.Form
    PdfField.Initialize()
    PdfField.Flatten
    PdfField.DisableAutoFormat
    PdfField.PdfTag
    PdfField.TabIndex
    PdfField.Layer
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class PdfLoadedSignatureField : PdfLoadedStyledField, IPdfWrapper
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Gets the signature field         
    PdfLoadedSignatureField signatureField = doc.Form.Fields["ManagerSignature"] as PdfLoadedSignatureField;
    signatureField.Flatten = true;            
    doc.Save("LoadedForm.pdf");
    doc.Close(true);
     'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
     ' Gets the signature field         
     Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields("ManagerSignature"), PdfLoadedSignatureField)
     signatureField.Flatten = True
     doc.Save("LoadedForm.pdf")
     doc.Close(True)

    Properties

    IsSigned

    Checks whether the signature field is signed or not

    Declaration
    public bool IsSigned { get; }
    Property Value
    Type Description
    System.Boolean

    A boolean value specifying the digital signature field have signature data or not.

    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Read the first page
    PdfPageBase page = doc.Pages[0];
    // Gets the signature field                     
    PdfLoadedSignatureField signatureField = doc.Form.Fields["ManagerSignature"] as PdfLoadedSignatureField;
    // Checks whether the signature field is signed or not
    bool isSigned = signatureField.IsSigned;
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Read the first page
    Dim page As PdfPageBase = doc.Pages(0)
    ' Gets the signature field                     
    Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields("ManagerSignature"), PdfLoadedSignatureField)
    ' Checks whether the signature field is signed or not
    Dim isSigned As Boolean = signatureField.IsSigned
    doc.Close(True)
    See Also
    PdfLoadedDocument

    Signature

    Gets or sets the digital signature for signing the field.

    Declaration
    public PdfSignature Signature { get; set; }
    Property Value
    Type Description
    PdfSignature

    A PdfSignature object specifying the digital signature for signing the field.

    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Read the first page
    PdfPageBase page = doc.Pages[0];
    // Gets the signature field                     
    PdfLoadedSignatureField signatureField = doc.Form.Fields["ManagerSignature"] as PdfLoadedSignatureField;
    // Create a new Signature
    PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123");
    PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature");
    signature.Bounds = new RectangleF(new PointF(5, 5), new SizeF(100, 200));   
    // Set the signature of the field
    signatureField.Signature = signature;
    doc.Save("Form.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Read the first page
    Dim page As PdfPageBase = doc.Pages(0)
    ' Gets the signature field                     
    Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields("ManagerSignature"), PdfLoadedSignatureField)
    ' Create a new Signature
    Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123")
    Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature")
    signature.Bounds = New RectangleF(New PointF(5, 5), New SizeF(100, 200))
    ' Set the signature of the field
    signatureField.Signature = signature
    doc.Save("Form.pdf")
    doc.Close(True)
    See Also
    PdfSignature
    PdfLoadedDocument
    PdfCertificate

    See Also

    PdfLoadedStyledField
    PdfLoadedDocument
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved