PdfViewer.ImportFormFieldData(Stream) Method
In This Article
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