File name code

Avatar

29-01-2009

Does anyone have JS code that will add the current file name (or complete path) to that document.

Replies

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

29-01-2009

I don't understand your question.



Jasmin

Avatar

29-01-2009

I would like to embed the file name and/or path into the footer of the pdf. Much like Word can do in the header and footer of the document.

Avatar

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
HowardTreisman
Level 9

20-02-2009

Try this on the click event of a button in javascript:

var myDoc = event.target;

xfa.host.messageBox('The file name of this document is ' + myDoc.documentFileName + '\nThe path name of this document is ' + myDoc.path);

Howard

http://www.avoka.com