Copy link to clipboard
Copied
First I am extremely new to anything with adobe and everything I have been doing has been trial and error and a lot of looking on line but this last step has me stumped as I guess I do not have a "full blown" developer version of adobe. Just had audit jump on me for "approving" invoices as I should have only "approved" the current charges. So I made a dynamic stamp that has the time / date (that code is working) but when I try to fill out the identity I am running into issues. This is the "code" I am using but guess the file name is not the same as the "stamp name".
if ((event.source.forReal)&&(event.source.stampName == "#ETn8uQFMCHNimOBiOYqMBA"))
{
event.value = identity.name;
}
Unfortuantely I do not have "Page template" nor "java control panel" nor "java console" and wondering if there is a way to get the "stamp name" for the file.... etn8u.......
The code i am using for the data is working fine and is.......
event.value = util.printd("h:MM tt, mmm dd yyyy", new Date);
Any assistance would be great!! Thank you in advance and I do apologize if I am not 'wording' things correctly as again, I am extremly new to all of this and got where i am at via trial and error.
Copy link to clipboard
Copied
Which version of Acrobat are you using? I assume Pro or Standard if you are creating form fields. There are 2 easy ways to get the "AP" (stampName in your script) but both require using the console:
1) Open the stamp file and run the following script: this.templates
2) Stamp a PDF with the stamp, select the stamp, and run the following script in the console: this.selectedAnnots[0].AP
If you are using Standard, it has a console but there is no User Interface way to open it. This article will show you how:
https://pdfautomationstation.substack.com/p/acrobat-standard-vs-acrobat-pro
Copy link to clipboard
Copied
Which version of Acrobat are you using? I assume Pro or Standard if you are creating form fields. There are 2 easy ways to get the "AP" (stampName in your script) but both require using the console:
1) Open the stamp file and run the following script: this.templates
2) Stamp a PDF with the stamp, select the stamp, and run the following script in the console: this.selectedAnnots[0].AP
If you are using Standard, it has a console but there is no User Interface way to open it. This article will show you how:
https://pdfautomationstation.substack.com/p/acrobat-standard-vs-acrobat-pro
Copy link to clipboard
Copied
outstanding and thank you! used the suggested article and the suggested code on mouse up and was able to get the stamp name. Already tested and all is working! Thank you very much!

