Initializes a PdfTextFormFieldSignature with a predefined name.
def__init__(self,name):...
Parameter
Type
Description
name
str
Name of form field object.
Example
fromgroupdocs.signatureimportSignaturefromgroupdocs.signature.optionsimportFormFieldSignOptionsfromgroupdocs.signature.domainimportTextFormFieldSignaturewithSignature("sample.pdf")assignature:text_field=TextFormFieldSignature("FieldText","Value1")options=FormFieldSignOptions(text_field)options.left=100options.top=400options.width=200options.height=20result=signature.sign("signed_form_field.pdf",options)forfieldinresult.succeeded:print(f"Added form field '{field.name}' with value '{field.value}'")
init
Initializes a PdfTextFormFieldSignature with a predefined name.
def__init__(self,name,text):...
Parameter
Type
Description
name
str
Name of form field object.
text
str
Text of form field object.
Example
fromgroupdocs.signature.domainimportTextFormFieldSignature# Create a text form field named "FieldText" with the value "Value1"text_field=TextFormFieldSignature("FieldText","Value1")