Page 1 of 1

Filename stamp

Posted: Mon Jan 07, 2019 7:45 am
by bircn
G'day

I'm trying to make a dynamic stamp for a documents filename.

I'm currently using the following code, however it only gets the filename of the stamp, not the actual document I'm trying to stamp.

Code: Select all

this.URL;
this.path; 
fn = this.documentFileName;

event.value = fn;
I'm a novice user as you can probably tell. Any help is appreciated.

Cheers

Re: Filename stamp  SOLVED

Posted: Mon Jan 07, 2019 6:31 pm
by Vasyl-Tracker Dev Team
Hi bircn.

Try this one instead:

Code: Select all

var t = event.source.source.documentFileName;
if (t == "")
    t = "<Filename>";
event.value = t;
The attached pdf shows the working example.

Also helpful info for you:
https://acrobatusers.com/tutorials/prin ... mp_secrets

Cheers.

Re: Filename stamp

Posted: Mon Jan 07, 2019 9:28 pm
by bircn
Thanks Vasyl, works a treat.

Re: Filename stamp

Posted: Mon Jan 07, 2019 9:38 pm
by TrackerSupp-Daniel
:D