Back to Devexpress

PdfViewer.ImportFormFieldData(Stream) Method

maui-devexpress-dot-maui-dot-pdf-dot-pdfviewer-dot-importformfielddata-x28-system-dot-io-dot-stream-x29.md

latest1.4 KB
Original Source

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

csharp
public void ImportFormFieldData(
    Stream stream
)

Parameters

NameTypeDescription
streamStream

A stream that contains field data.

|

Remarks

The following example loads acrofield data from a FDF file:

csharp
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

PdfViewer Class

PdfViewer Members

DevExpress.Maui.Pdf Namespace