Form.FillFields

Form.FillFields method

Fills the text box fields with a text values and save the document. Relevant for signed documents. Notice: Only be applied to Text Box. Both the fields’ name and values are case sensitive.

public bool FillFields(string[] fieldNames, string[] fieldValues, out Stream output)
ParameterTypeDescription
fieldNamesString[]Names of fields.
fieldValuesString[]New values of the fields.
outputStream&Stream where document will be saved.

Return Value

true if fields was found and successfully filled.

Examples

var form = new Form(dataDir + "SignedPdfForm.pdf");
Stream stream; 
form.FillFields(new string[] {"Field1"}, new string[] {"+"}, out stream);

See Also