Product: WebViewer
Product Version: 8.0.1
Please give a brief summary of your issue:
I want to open the signature tool when the user clicks a button, which I know that I can do via tool.trigger('locationSelected')
.
Once the signature is created however, I want to override PDFTron’s default behavior which is to create a ghost element of the signature, that follows the user’s cursor around until the user clicks on the document (at which point the signature is dropped onto that location).
Is there any way to prevent the ghost-element-click-and-drop thing, so that I can control where the newly created signature is placed on the page?
I tried doing this:
tool.trigger('locationSelected', [
{
pageIndex: 0,
x: 10,
y: 10,
},
widget,
]);
thinking that it would replace the widget (which is a SignatureWidgetAnnotation
) with the signature. But it didn’t seem to make any difference.