Need help to add an automatic date to my resume!

New Here ,
Sep 05, 2022 Sep 05, 2022

Copy link to clipboard

Copied

Is this possible? I need to add an automatic date on the first page on the top right with the following format mmmm/ddd/yyyy (ex. September 5th, 2022). This way I don't have to constantly edit the date every day and it will update to that specific date whenever I open it, but I found no tutorials for this since I don't normally use Acrobat. I've attached my resume in question, thanks!

TOPICS
Edit and convert PDFs , How to

Views

33

Likes

Translate

Translate

Report

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
Adobe Employee ,
Sep 05, 2022 Sep 05, 2022

Copy link to clipboard

Copied

LATEST

Hi @IAmInfinitus9,

 

I hope you are doing well. 

 

To achieve the said workflow, you will need to implement JavaScript on your document.

 

First, let's get started by enabling the running of JavaScript by going to Preferences-> JavaScript-> check the option stating "Enable Acrobat JavaScript."

 

Once done, follow the given steps:

1. After opening the document, add a date field by going to Tools-> Forms & Signatures-> Prepare Form;

2. Add a date field-> go to its properties;

3. Check the name of the field and then go to Format -> select the desired Format;

4. Once all the appearance settings are done, close the workflow.

 

5. Now, on the navigation pane on the left, click on the pages icon;

6. The page that contains the date field-> right click to click on Page Properties;

7. Click on Actions Tab;

8. On the Select Action dropdown, select the option Run a Java Script;

9. Click on Add;

10. Add the script on the next popping Window:

var f = this.getField("field name");
f.value = util.printd("mmm/dd/yyyy", new Date());

 

**Note: The date filed name and the Format should be the same for this work.

 

11. Now click on Ok -> click OK again.

12. Now go to File -> Save As-> save the File to a new location.

13. Now your File is ready with Auto Date Calculation.

 

Let me know if this helps.

 

-Souvik.

Likes

Translate

Translate

Report

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