Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Jun 15, 2021 Jun 15, 2021

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?

 

zd.jpg

TOPICS
General troubleshooting , How to , JavaScript , PDF forms
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 15, 2021 Jun 15, 2021

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 15, 2021 Jun 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 15, 2021 Jun 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 16, 2021 Jun 16, 2021

so the question how to create this one feature

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 16, 2021 Jun 16, 2021

The answer is it's not possible with JS. Maybe with VBA/C#. I'm not familiar enough with those languages and what they can (or can't) do in Acrobat.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 29, 2021 Jun 29, 2021

so maybe you know how to find "option or something where you can stamp more than once without having to click the stamp button each time?"

releated topic here, but I do not have this options in my Adobe Acrobat Pro DC (32bit) version

https://acrobatusers.com/forum/general-acrobat-topics/using-stamp-multiple-times/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 29, 2021 Jun 29, 2021

If you click the little pin icon in the Comments toolbar the tool you select will remain selected and you could apply it multiple times in a row.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 29, 2021 Jun 29, 2021

I cannot click - button its visible but not "enabled" - this can by why I cannot see this property even If I click ctrl+e

do you know why its not enabled?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 29, 2021 Jun 29, 2021

It has nothing to do with Ctrl+E. Select the Stamp tool, then press the Pin icon.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 29, 2021 Jun 29, 2021

fantastic, work fine! - last question, its possible to set "pin" just only for one/specific stamp? <can be via JS> 

how do you think?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 29, 2021 Jun 29, 2021
LATEST

Once you select a specific stamp and click the pin icon, that stamp should remain selected.

And no, it can't be done with JS.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines