File name to Dynamic Stamp
Would anyone know how to stamp the file name using JavaScript to my dynamic stamp in Acrobat.
Would anyone know how to stamp the file name using JavaScript to my dynamic stamp in Acrobat.
From inside a stamp script the "this.documentFileName" will return the name of the stamp file, not the name of the file being stamped.
Use this code in a calculation script on the stamp to put the name of the file being stamped into the field.
event.value = event.source.source.documentFileName;
This is code is undocumented. You can read all about it here:
https://acrobatusers.com/tutorials/dynamic_stamp_secrets/
Find out everything you ever wanted to know about stamps here:
https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.