I have a button and this open a modal, inside there are a images gallery and when the user click on image and after click in Accept button I want add this image how signature and manipulate inside the pdftron.
While I am not sure on the specifics on how you want the app to function, you could:
On the modal open, display the signatures and seals,
When you select the signature, then click “accept”
Then it sets the signature of the tool (using setSignature(seal/signature))
Then the tool has the signature which you can then place on the document
a. you could have the user place it with their cursor, which is the default placement
b. or you could have it programmatically place on the document with the code snippet i sent above
Does this sound correct?
Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron
You can implement the drag and drop by extending the mouseLeftDown, mouseLeftUp, and mouseMove functions on the SignatureCreateTool, heres a guide on extending functionality: PDFTron Systems Inc. | Documentation
Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron