Skip to main content
Participant
September 28, 2019
Answered

Creating an interactive Date Stamp

  • September 28, 2019
  • 5 replies
  • 7135 views

I have seen this question posted often, but I just cannot find the answer, and it seems like it should be simple.

 

I want to create a dynamic stamp that asks the user to input the date a document was filed, which may be a date earlier than the current day (so I can't use the automatic date.)

 

I just can't figure out how to do this, whether using app.response or anything else.  I have looked over Thom Parker's tutorial and I still don't get it.

 

I have created the stamp, I have the text box ready, but I just can't figure out the script to do what I need.  It seems like it should be easy, cut blearly I am missing something.  I know nothing about coding or programming.

    This topic has been closed for replies.
    Correct answer Thom Parker

    The correct answer was found in a very popular article that has been around for quite some time and is referenced quite often on this forum (well, actually the old one since this one is new).

    Here it is:

    https://acrobatusers.com/tutorials/dynamic_stamp_secrets

    5 replies

    Thom Parker
    Community Expert
    Thom ParkerCommunity ExpertCorrect answer
    Community Expert
    October 31, 2019

    The correct answer was found in a very popular article that has been around for quite some time and is referenced quite often on this forum (well, actually the old one since this one is new).

    Here it is:

    https://acrobatusers.com/tutorials/dynamic_stamp_secrets

    Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
    Participant
    October 31, 2019

    Additional question: can I use acrobat x standard to create a stamp? Or do I need another program?  Thanks

    Thom Parker
    Community Expert
    Community Expert
    October 31, 2019

    If you can edit a form field, then you can create a dynamic stamp.  

    Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
    Participant
    October 3, 2019

    Hi, everyone - just a quick update.  I figured it out, based on some online resources I found. Mercy, it shouldn't have been so difficult.

     

    But, to recap:  I need a stamp to ask the user to enter the date a document is filed.  That's it.  We can't use the date from the system as that could be a different date than the filing date.  So, I looked around, pieced together different codes until I found out why it wasn't working - and I needed to upgrade my version of Acrobat so I could actually get the Java Script debugger to work.  Once I did that, I was able to find the main problem - finding the true name of the stamp.  At any rate, if anyone is interested, here is the code I used:

    --- BEGIN CODE---

    var cAsk = "Date of Filing:";
    var cTitle = "Date Filed with the Office of Census Data";

    if (event.source.forReal && (event.source.stampName == "#2QNz0Z9AwlOH_hzlTW6puC"))

    {

    var cMsg = app.response(cAsk, cTitle);
    event.value = cMsg;

    }

    --- END CODE---

     

    Works like a charm.  Thanks for all the feedback!

    Mark

     

     

    ls_rbls
    Community Expert
    Community Expert
    October 3, 2019
    This is some great info! thank you so much for sharing.
    JR Boulay
    Community Expert
    Community Expert
    September 30, 2019
    Acrobate du PDF, InDesigner et Photoshopographe
    Participant
    September 30, 2019
    How do I import it? I have Acrobat Standard 2017. I don't see any option to import it.
    ls_rbls
    Community Expert
    Community Expert
    September 30, 2019
    Hi, you have to save the downloadd file to the desktop or a folder of your choice. Then, once it is downloaded, you right-click on the file and your operating system (Windows, for example) will provide a context menu that will pop... the first option in that context menu (from top to bottom) will provide you an option in bold letters that says: "Import Action". Once it is imported it will notify if the import was successful; open your adobe acroobat, click on search tools, type in the name of the action tool that you've just imported and it will show for you to select it and start workign with it
    ls_rbls
    Community Expert
    Community Expert
    September 28, 2019

    Download and run the Acrobat Action: Filename Stamper.

     

    https://www.google.com/url?sa=t&source=web&rct=j&url=https://acrobatusers.com/assets/uploads/actions/File_Name_Stamper.pdf&ved=2ahUKEwje3seH__LkAhXvct8KHSfPAw4QFjAQegQIBBAB&usg=AOvVaw040vQmMABh082a0jWfBLAx

     

    This action wizard allows you to grab frombthe Document Properties whatever it is you want to stamp.

     

    In order to get the original date that your document(s) were created you need to go to File----Document Properties----Additional Metadata

    You will see the date that the document was created from there

    Participant
    September 29, 2019
    Thanks, but this isn't exactly what I need. I need to be able to type in the date the document was filed with my office, which could be several days, weeks, or months after the document was created. So, the date created doesn't work for me.