Back to Devexpress

PdfViewer.ExportFormFieldData(Stream, PdfFormDataFormat) Method

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

latest1.5 KB
Original Source

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

csharp
public void ExportFormFieldData(
    Stream stream,
    PdfFormDataFormat format
)

Parameters

NameTypeDescription
streamStream

A stream that contains field data.

| | format | PdfFormDataFormat |

Field data export format.

|

Remarks

The following example exports acrofield data to a stream:

csharp
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

PdfViewer Class

PdfViewer Members

DevExpress.Maui.Pdf Namespace