Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2008-01-14 15:54:33

cmorton89
Member
Registered: 2008-01-14
Posts: 0

File Name in Footer

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

 

#2 2008-01-14 19:31:11

thomp
Member

Registered: 2007-04-23
Posts: 1027

Re: File Name in Footer

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

 

#3 2008-02-27 17:14:09

dws
Member
Registered: 2008-02-27
Posts: 2

Re: File Name in Footer

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

 

#4 2008-03-11 10:11:52

DanielKunz
Member
Registered: 2008-01-22
Posts: 30

Re: File Name in Footer

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

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in