We are using pdftron in our application for drawing annotations, We would like to replace the current behaviour of PTCreateToolBase which is ‘Tap-Drag’ with ‘Tap-Tap’ to create annotation, The reason behind doing so is we want our users to accurately pick a starting point and zoom out and scroll to his desired second point and tap again to complete the action of creating Arrow or Line or Ruler Annotation
I create my own annotation creation tool by deriving the PTCreateToolBase class, But when I try to use api ‘HandleTap’ like below
`
[Export(“pdfViewCtrl:handleTap:”)]
public bool HandleTap(PTPDFViewCtrl pdfViewCtrl, UITapGestureRecognizer gestureRecognizer)
{
/// The Logic of Tap and Tap behaviour
}
`
But that method is not getting called
Below is the code snippet I used for changing the tool
toolManager.ChangeTool(new Class(typeof(CustomLine)));
Do somebody know what I am doing wrong here?
Or is there any-other way to achieve the Tap and Tap behaviour for creating Annotation