Expand my Community achievements bar.

livecycle designer - javascript - how to determine the filename of the PDF

Avatar

Former Community Member
hi,



is it possible to determine te name of the PDF-file in javascript ( livecycle designer )



thx



johan
1 Reply

Avatar

Former Community Member
johan_de_clercq@adobeforums.com wrote:

> hi,

>

> is it possible to determine te name of the PDF-file in javascript ( livecycle designer )

>

> thx

>

> johan



Yes, as follows:

var myDoc = event.target;

xfa.host.messageBox("File name is " + myDoc.documentFileName);

xfa.host.messageBox("Device-independent path is " + myDoc.path);



--

Justin Klei

Cardinal Solutions Group

www.cardinalsolutions.com