FormDataConverterConvertToDataTable Method
Convert files of strems into table.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public void ConvertToDataTable(
	Stream[] sourceStreams,
	DataType sourceType
)

Parameters

sourceStreams
Type: System.IOStream
Array of source streams in specified format.
sourceType
Type: Aspose.Pdf.FacadesDataType
Format of data in streams. Valid values are: PDF, FDF, XFDF, XML.
Examples
C#
DataTable table = new DataTable();
table.Columns.Add("radiobuttonField");
table.Columns.Add("textField");
table.Columns.Add("checkboxField");
table.Columns.Add("listboxField");
table.Columns.Add("comboboxField");
FormDataConverter fc = new FormDataConverter();
Stream stream = new FileStream("PdfWithAcroForm.pdf", FileMode.Open);
fc.Table = table;
fc.ConvertToDataTable(new Stream[] { stream }, DataType.PDF);
stream.Close();
See Also