I am using PdfViewCtrlTabHostFragment2 to render document. I want to detect modification of annotation so i am using ToolManager.AnnotationModificationListener but unable to implement properly. When i am add, edit,remove annotation then these methods are not calling. Please help me to solve this issue or please provide me any sample if available.
Shirley same as I tried AnnotationSyncingListener in onTabDocumentLoaded method.
Now I am getting a issue after using of annotation presetbar is disappearing and got this line in logcat - “PDFNet: Incremental save is not supported in admin-undo-own collaboration mode”.
Hi Pawan,
Firstly, using annotation manager means you are saving XFDF separately from the document, so you should turn off saving setSavingEnabled(false):
Second, if you are using annotation manager, then you likely don’t want to also use add/modify/delete callbacks. If you need to use both, please kindly explain your use case and your user story.
Sounds good, so you should be able to disable saving, and use “onLocalChange” callback to achieve that without any of the add/modify/delete event. Are you still having any issue with this?
I am using PdfViewCtrlTabHostFragment2 and setSavingEnabled(false) method available in PdfViewCtrlTabBaseFragment. How we can use setSavingEnabled(false) with PdfViewCtrlTabHostFragment2 or any other option ?
Hi Pawan, could you elaborate on your goal? PDFTron renders annotations by default. Do you mean create them programmatically? What exactly are you looking to do? Thanks.
As per my user story, When I am creating an annotation I am sending xfdf string of that annotation on our backend. Whenever I will open that document again or login with another device or platform(Android/iOS) and open the same document.
I have to render that annotation from the backend(xfdf string) page by page. So my question is how can i render annoation with xfdf string after open the document?