PdfViewerControl.ExportFormData() Method
Exports interactive form data either to XML or FDF form data format.
Namespace: DevExpress.Xpf.PdfViewer
Assembly: DevExpress.Xpf.PdfViewer.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.PdfViewer, DevExpress.Wpf.PdfViewer
Declaration
Remarks
The ExportFormData method invokes the Save As dialog window, where you can specify the desired file format (XML or FDF) and a file name to export a document with interactive forms.
You can call the ExportFormData method in the PdfViewerControl.DocumentLoaded event handler after a PDF document is loaded.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxpdf="http://schemas.devexpress.com/winfx/2008/xaml/pdf"
x:Class="ExportFormData.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<dxpdf:PdfViewerControl x:Name="Viewer" DocumentLoaded="Viewer_DocumentLoaded" />
</Grid>
</Window>
You can use PdfViewerExtensions.Export method to export interactive form data with specified format settings. Add DevExpress.Docs reference to your application to access extension methods.
Important
You require a license to the DevExpress Office File API or DevExpress Universal Subscription to use this member in production code. Refer to the DevExpress Subscription page for pricing information.
Refer to the Interactive Forms in PDF Documents topic for more information.