With PDFViewWPF how do I detect when a user clicks on Signature field?

15 views
Skip to first unread message

Ryan

unread,
Nov 2, 2016, 3:05:16 PM11/2/16
to PDFTron PDFNet SDK
Question:

With PDFViewWPF how do I detect when a user clicks on Signature field?

Answer:

You could start in Pan.cs ProcessInputDown function which will get the click event.

However, at the time of this writing, Pan.cs IsWidget intentionally returns false for signature fields, so if you modify IsWidget to return true for signatures also, then you could do your clicking on signature field logic in FormFill.cs HandleWidget.

Exact location depends on what you are doing, but probably HandleWidget is the best way to go, as it would also handle keyboard input, or stylus/touch.

Pan.cs and FormFill.cs are both in the PDFViewWPFTools project that comes with the SDK.
Reply all
Reply to author
Forward
0 new messages