Skip to main content
Participating Frequently
June 15, 2021
Question

how to put stamp via script (vba or c# or JS) or stamp "on mouse" using script

  • June 15, 2021
  • 1 reply
  • 1970 views

Hi

 

I would like to put stamp via script on place where I click mouse the mouse, to achieve it can do:

1) getMousePos and calculate it to pdf positions (taking care of zoom/page, etc.) - do you have any of these solutions?

2) after click script, script will automatically put stamp "on mouse" and then I could manually click the place where the stamp should be. The same logic as we already have in Adobe but what I need is to get VBA/C#/JS code to do it. - do you know the method?

 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
June 15, 2021

This is not possible with JS, since clicking the page does not trigger any events.

Dawid5CE9Author
Participating Frequently
June 15, 2021

look at this solution: https://www.youtube.com/watch?v=TzeuyO__hgU&t=115s

they put stamp on page just clicking the mouse and I am looking for code "how to put stamp on mouse" (vba/js/c#)

 do you have any idea?

try67
Community Expert
Community Expert
June 15, 2021

They're just using the built-in Stamp tool to do it. You can't do that with JS. You can add a stamp to a specific location on the page with it, but you can't "track" the mouse's location. It just doesn't work that way.