Skip to main content
Participant
October 5, 2023
Answered

Footer

  • October 5, 2023
  • 1 reply
  • 1365 views

Hi there! 

I used to use a JavaScript to insert a footer with the documentname. 
After the last update from acrobat this script does not work anymore. 

How can i insert a footer with the documentname? 
Its possible to insert the date like <<t/m>> 

There must be a variable for the documentname as well? 

Thx a lot! 

This topic has been closed for replies.
Correct answer try67

Oh, ok 🙂 

Hm, the script I used stopped working. At least I cannot find the menu of the script anymore... 


To go back to the old UI click the Options button at the top left corner (Windows) or open the View menu (Mac) and select Disable New Acrobat.
And you can vote here to get rid of it: https://acrobat.uservoice.com/forums/590923-acrobat-for-windows-and-mac/suggestions/47082691-ditch-the-2023-user-interface-in-acrobat

1 reply

try67
Community Expert
Community Expert
October 5, 2023

What script did you use? It should still work the same, if it did before.

And yes, the file name can be accessed using this.documentFileName .

However, note that if you add it to a footer that is not dynamic, if you rename the file it will no longer show the correct name.

Participant
October 5, 2023

Thx 🙂
This script (changed js to .ai) 
.documenFileName. seems not to work here

try67
Community Expert
Community Expert
October 5, 2023

No, that's not what I meant. You have to use a script to be able to create the watermark text using this code.