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

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

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

HowardTreisman

Avatar

HowardTreisman

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