Hello, I tested the stamp by modifying the script with #eDfOEniZ99McqbVPx6QPDB and it works! Thank you very much! The script from "bebarth" also works, but it is indeed less secure if I use multiple stamps, which will be my case. I had a few other questions:
- How do I find the name of the AP stamp #eDfOEniZ99McqbVPx6QPDB? I would like to create two other stamps, almost identical.
- Instead of the automatic file name, can I have a pop-up that allows me to manually fill in this field?
- How can I make the content wrap to the next line if the text is too long?
- Is it possible to lock the stamp once it has been applied?
- For my third stamp, can I copy and paste this stamp into AppData, rename it, and remove the part of the script related to the file name?
Thank you!
1. There are two ways to do this.
a) Open the stamp file and run the following script in the console: this.templates
b) Apply the stamp to a PDF, select the stamp and run the following script in the console: this.selectedAnnots[0].AP
https://youtu.be/DePWr_1lnYg?t=184
2) Yes. this.getField("File Name").value = app.repsonse("Enter file name:");
3) Make the stamp field a multiline text field.
4) By "lock", if you mean the locked check box in the appearance tab of the stamp properties is checked, you simply set the lock property of the stamp to true. Anybody can access the properties and uncheck the box. If you want the stamp to be locked so that there can be no user interaction with the stamp after it is placed, simply set the readOnly property to true. This can only be undone with a script. Having either of the settings executed automatically as the stamp is applied is proprietary information that I'm not willing to share here since most of the experts say it can't be done.
5. You'll have to either change the template name or the document Title (which is the category in the stamp menu). The template name mush begin with # or the stamp may only function once in a session.