Any way to extract xfdf from XOD?

We are trying to extract the form data from XOD in the server. The code used is given below.

pdf_file ="")
fdf_doc = pdf_file.FDFExtract(PDFDoc::E_both)
xfdf_string = fdf_doc.SaveAsXFDF()


Is there any way to extract the XFDF xml from an XOD file?

The code you posted doesn’t match your question, as the code has nothing to do with XOD files.

You can get the XFDF data from XOD file, by calling readerControl.docViewer.getAnnotationManager().exportAnnotations() once the document is loaded in WebViewer.

Why is extracting the XFDF from a XOD important for you?