Product: PDFNet iOS 184.108.40.206382 (swift)
How to extract XFDF from last created annotation without calling the FDF extract from the entire document ?
When I create an annotation I want to extract it’s xfdf so I can save it to Database. I currently use the toolManager delegate method “annotationAdded” and I use the Doc saveAsXFDFToString function of the document to get the XFDF content. The problem is that I extract all annotations XFDF from document so when there are a lot of annotations, it creates a memory leak and crashes the application.
Is there a more optimised way of extracting one annotation xfdf ? I tried to implement the PTCollaborationServerCommunication protocol, but the documentation isn’t clear in Swift.
Thanks in advance for your help.