Highlighted

File name code

Avatar

Guest

29-01-2009

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

Replies

Highlighted

Avatar

Guest

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.
Highlighted

HowardTreisman

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