Form.ExportJson

Form.ExportJson method

Exports the contents of all fields in the document into a JSON stream. Button field values are not exported.

public void ExportJson(Stream outputJsonStream, bool indented = true)
ParameterTypeDescription
outputJsonStreamStreamThe output JSON stream where the document’s fields data will be written.
indentedBooleanOptional. Specifies whether the JSON output should be indented for better readability. The default value is true.

Examples

Form form = new Form("PdfForm.pdf");
FileStream fs = new FileStream("export.json", FileMode.Create, FileAccess.Write);
form.ExportJson(fs);
fs.Close();

See Also