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)
Parameter Type Description
fieldNames String[] Names of fields.
fieldValues String[] New values of the fields.
output Stream& 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