FormDataConverter

FormDataConverter

Overview

FormDataConverter is a class in Aspose.PDF FOSS for .NET.

Bridges PDF form-data formats (FDF / XFDF / XML) with DataTable and direct stream-to-stream transforms.

This class provides 8 methods for working with FormDataConverter objects in .NET programs. Available methods include: ConverToStreams, ConvertFdfToXml, ConvertToDataTable, ConvertToStreams, ConvertXmlToFdf, ExportFromDataBase, FormDataConverter, ImportIntoDataBase. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: ClearTableBeforeExport, CreateMissingField, CreateMissingTable, ReplaceExistingTable, Table.

Properties

NameTypeAccessDescription
TableDataTableRead/WriteBacking DataTable used by the database-import / -export paths and the stream-conversion paths that target tabular data.
ClearTableBeforeExportboolRead/WriteWhen true, importing into a database table clears existing rows first.
CreateMissingFieldboolRead/WriteWhen true, missing AcroForm fields are created during import.
CreateMissingTableboolRead/WriteWhen true, a missing destination table is created on database export.
ReplaceExistingTableboolRead/WriteWhen true, an existing destination table is dropped + recreated rather than appended to.

Methods

SignatureDescription
FormDataConverter()Default constructor.
ConvertXmlToFdf(sourceXml: Stream, destFdf: Stream)Convert XML form data to FDF.
ConvertFdfToXml(sourceFdf: Stream, destXml: Stream)Convert FDF form data to XML.
ConvertToDataTable(sourceStreams: Stream[], sourceType: DataType)Read form data from one or more streams into Table.
ConvertToStreams(destStream: Stream[], destType: DataType)Serialize Table’s rows into the destination streams in the requested format (one row per stream when the array length matches; otherwise one stream gets everything).
ConverToStreams(destStream: Stream[], destType: DataType)Misspelled alias for ConvertToStreams (single ’t’) retained for compatibility.
ExportFromDataBase(connectString: string, dbType: DataType)Export form data from a database connection into Table.
ImportIntoDataBase(connectString: string, dbType: DataType)Import Table into a database.

See Also