Skip to main content

PdfViewer.ExportFormFieldData(Stream, PdfFormDataFormat) Method

Exports field data to a stream in the specified format.

Namespace: DevExpress.Maui.Pdf

Assembly: DevExpress.Maui.Pdf.dll

NuGet Package: DevExpress.Maui.Pdf

Declaration

public void ExportFormFieldData(
    Stream stream,
    PdfFormDataFormat format
)

Parameters

Name Type Description
stream Stream

A stream that contains field data.

format PdfFormDataFormat

Field data export format.

Remarks

The following example exports acrofield data to a stream:

readonly string formFieldDataPath = Path.Combine(FileSystem.CacheDirectory, "ArrivalCardFormData.fdf");
void OnFormFieldExportClick(object sender, EventArgs e) {
    using FileStream stream = new FileStream(formFieldDataPath, FileMode.Create);
    pdfViewer.ExportFormFieldData(stream, DevExpress.Pdf.PdfFormDataFormat.Fdf);
}

To import field data, call the ImportFormFieldData(Stream) method.

See Also