Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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