---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/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

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Table` | `DataTable` | Read/Write | Backing DataTable used by the database-import / -export paths and the stream-conversion paths that target tabular data. |
| `ClearTableBeforeExport` | `bool` | Read/Write | When true, importing into a database table clears existing rows first. |
| `CreateMissingField` | `bool` | Read/Write | When true, missing AcroForm fields are created during import. |
| `CreateMissingTable` | `bool` | Read/Write | When true, a missing destination table is created on database export. |
| `ReplaceExistingTable` | `bool` | Read/Write | When true, an existing destination table is dropped + recreated rather than appended to. |

## Methods

| Signature | Description |
|-----------|-------------|
| `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

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)