SignatureField

SignatureField class

Represents signature form field.

The SignatureField type exposes the following members:

Constructors

NameDescription
SignatureField(page, rect)Initializes a new instance of the SignatureField class
SignatureField(doc, rect)Initializes a new instance of the SignatureField class

Properties

NameDescription
vertical_alignmentNone
horizontal_alignmentNone
marginNone
is_first_paragraph_in_columnNone
is_kept_with_nextNone
is_in_new_pageNone
is_in_line_paragraphNone
hyperlinkNone
z_indexNone
update_appearance_on_convertNone
use_font_subsetNone
flagsNone
annotation_typeGets type of annotation.
widthNone
actionsGets the annotation actions.
heightNone
rectGets or sets the field rectangle.
contentsNone
nameNone
modifiedNone
colorNone
borderNone
active_stateNone
characteristicsNone
statesNone
alignmentNone
text_horizontal_alignmentNone
full_nameNone
appearanceNone
page_indexGets index of page which contains this field.
on_activatedAn action which shall be performed when the annotation is activated.
highlightingAnnotation highlighting mode.
parentGets annotation parent.
default_appearanceGets or sets default appearance of the field.
read_onlyGets or sets read only status of the field.
requiredGets or sets required status of the field.
exportableGets or sets exportable flag of the field.
partial_nameGets or sets partial name of the field.
alternate_nameGets or sets alternate name of the field (An alternate field
name that shall be used in place of the actual field name
wherever the field shall be identified in the user interface).
Alternate name is used as field tooltip in Adobe Acrobat.
mapping_nameGets or sets mapping name of the field that shall be used when exporting interactive form field data from the document.
valueGets or sets value of the field.
is_synchronizedReturns true if dictionary is synchronized.
sync_rootSynchronization object.
is_groupGets or sets boolean value which indicates is this field non-terminal field i.e. group of fields.
annotation_indexGets or sets index of this anotation on the page.
is_shared_fieldProperty for Generator support. Used when field is added to header or footer. If true, this field will created once and it’s appearance will be visible on all pages of the document. If false, separated field will be created for every document page.
fit_into_rectangleIf true then font size will reduced to fit text to specified rectangle.
max_font_sizeMaximail font size which can be used for field contents. -1 to don’t check size.
min_font_sizeMinimal font size which can be used for field contents. -1 to don’t check size.
tab_orderGets or sets tab order of the field.
signatureGets signature object.
This object contains signature data regarding public-key cryptographic standards.
Classes PKCS1, PKCS7 and PKCS7Detached
represent all supported types of signature objects.

Indexer

NameDescription
[index]Gets subfield contained in this field by index.

Methods

NameDescription
sign(signature, pfx, pass)Signs the document using this signature field.
sign(signature)Signs the document using this signature field.
extract_image()Extracts signature’s image as jpeg encoded stream.
extract_image(format)Extracts signature’s image as encoded stream.
clone()None
get_rectangle(consider_rotation)None
accept(visitor)Accepts visitor.
flatten()Removes this field and place its value directly on the page.
change_after_resize(transform)None
recalculate()Recaculates all calculated fields on the form.
copy_to(array, index)Copies subfields of this field into array starting from specified index.
set_position(point)Set position of the field.
extract_certificate()Extracts the single X.509 certificate in DER format as a stream.

See Also