I have to listen AnnotationModified event as shown below. But not sure on how/when because CurentPdfViewCtrlFragment is null.
Am using pdftron.PDF.Controls.DocumentView2 as given in this sample https://github.com/PDFTron/xamarin-forms-sample
I have to listen AnnotationModified event as shown below. But not sure on how/when because CurentPdfViewCtrlFragment is null.
Am using pdftron.PDF.Controls.DocumentView2 as given in this sample https://github.com/PDFTron/xamarin-forms-sample
You should override the OnTabDocumentLoadedEvent
to ensure that the fragment is not null
I have to use MPdfViewCtrlTabHostFragment.CurrentPdfViewCtrlFragment not base.Viewer.CurrentPdfViewCtrlFragment
Following code change works fine
mDocumentView.MPdfViewCtrlTabHostFragment.CurrentPdfViewCtrlFragment.ToolManager.AnnotationsModified += ToolManager_AnnotationsModified