Hello!
I want to export form data into XFDF. Everything works fine when I'm doing it through PdfViewer.LoadedDocument:
// Load form handler
PdfViewerControl m_viewer;
m_viewer.Load( "form.pdf" );
// Save form handler
m_viewer.LoadedDocument.Form.ExportData( stream, DataFormat.XFdf, "form.pdf" );
But it doesn't save updated fields when the form is loaded into the instance PdfLoadedDocument passed to the viewer via XAML binding to the ItemSource property.
// Load form handler
PdfLoadedDocument m_doc = new PdfLoadedDocument("form.pdf");
// Actually this happens in XAML. Binding direction is OneWay
PdfViewerControl m_viewer;
m_viewer.ItemSource = m_doc;
// Save form handler
m_doc.Form.ExportData( stream, DataFormat.XFdf, "form.pdf" );
Do I need to do some synchronization? The document instance seems to be the same - m_viewer.LoadedDocument.Equals(m_doc) = true, so does the GetHashCode() of LoadedDocument and m_doc.
Regards
Denis.