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.ImportFormFieldData(Stream) Method

Imports field data from a stream in the specified format.

Namespace: DevExpress.Maui.Pdf

Assembly: DevExpress.Maui.Pdf.dll

NuGet Package: DevExpress.Maui.Pdf

#Declaration

C#
public void ImportFormFieldData(
    Stream stream
)

#Parameters

Name Type Description
stream Stream

A stream that contains field data.

#Remarks

The following example loads acrofield data from a FDF file:

readonly string formFieldDataPath = Path.Combine(FileSystem.CacheDirectory, "ArrivalCardFormData.fdf");
void OnFormFieldImportClick(object sender, EventArgs e) {
    if (File.Exists(formFieldDataPath)) {
        using FileStream stream = new FileStream(formFieldDataPath, FileMode.Open);
        pdfViewer.ImportFormFieldData(stream);
    }
}

To export field data to a stream, call the ExportFormFieldData(Stream, PdfFormDataFormat) method.

See Also