Expand my Community achievements bar.

File name code

Avatar

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

Avatar

Level 10
I don't understand your question.



Jasmin

Avatar

Former Community Member
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

Level 9
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