Hi, is their any way to extracted the annotations as a separate xml string when using an Documentactivity to load the pdf document
Hello,
Unfortunately, you cannot extract XFDF annotations when using DocumentActivity to load the PDF document. Instead of using DocumentActivity in this case, we recommend that you use Fragment instead as described here:
https://www.pdftron.com/documentation/xamarin/guides/using-fragment
You can then get the PDFDoc (and extract the XFDF) using the following function calls:
- https://www.pdftron.com/api/android/tools/javadoc/reference/com/pdftron/pdf/controls/PdfViewCtrlTabHostFragment.html#getCurrentPdfViewCtrlFragment()
- https://www.pdftron.com/api/android/tools/javadoc/reference/com/pdftron/pdf/controls/PdfViewCtrlTabFragment.html#getPdfDoc()
Please let me know if this works for you, and if you have any further questions.