Is there a way to automatically have the file name appear on a PDF in the footer and update if the name of the document changes on save or open or print?
My Product Information:
Reader Standard 8.1 / Windows
Offline

Yes. Place a text field on the bottom of the page and place this script in the calculate event.
AcroForm:
event.value = this.documentFileName;
LiveCycle
this.rawValue = event.target.documentFileName;
You could also put the code into a document script and/or the onSave event.
Offline
When I did this my"file name" came back encrypted. Is there a way to get the unencrypted "file name" to appear? example: my file name is "Customer Survey 123456.pdf" in the text field "_e4s162cp4c0575os.pdf" appears.
Well as it turns out once I saved the document in LiveCycle, closed it and opened it in reader the correct file name appeared.
Last edited by dws (2008-02-29 09:52:59)
Offline
The returned filename in Livecycle Designer is not encrypted.
Livecycle Designer creates a new file with that name for testing.
Otherwise your original file will be overwirtten everytime you create an preview.
Offline
AcrobatUsers.com >> User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in