Click or drag to resize
SignDocDocumentaddField Method
Add a field. See the members of SignDocField for details. This function can add check boxes, radio button groups, text fields, and signature fields to PDF documents. When adding a radio button group or a check box field, a value must be set, see SignDocField.setValue() and SignDocField.setValueIndex(). The SignDocField.f_NoToggleToOff flag should be set for all radio button groups. Adobe products seem to ignore this flag being not set. When adding a text field, the justification must be set with SignDocField.setJustification(). Currently, you don't have control over the appearance of the field being inserted except for the text field attributes. Adding a field to a PDF document that doesn't contain any fields will set the document's default text field attributes to font Helvetica, font size 0, text color black. Only signature fields can be added to PDF documents having signed signature fields. TIFF documents support signature fields only and all signature fields must be inserted before the first signature is added to the document (you may want to use invisible fields) unless all existing signature fields have flag f_EnableAddAfterSigning set.

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.6773.37566
Syntax
C#
public void addField(
	SignDocField field,
	SetFieldFlag flags
)

Parameters

field
Type: de.softpro.signdocsdkSignDocField
The new field. The font resource name of the default text field attributes may be modified. The value index and the value may be modified for radio button fields and check box fields.
flags
Type: de.softpro.signdocsdk.Enums.EDocumentSetFieldFlag
Flags modifying the behavior of this function, see #sff_keep_ap, #sff_fit_height_only, #sff_force_border_width, #sff_dont_break_lines, #sff_auto_alignment, #sff_ltr, #sff_rtr, #sff_default_ltr, and #sff_default_rtl.
See Also