Filename stamp  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
Posts: 2
Joined: Mon Jan 07, 2019 7:37 am

Filename stamp

Post by bircn » Mon Jan 07, 2019 7:45 am


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

fn = this.documentFileName;

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


User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1991
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Filename stamp  SOLVED

Post by Vasyl-Tracker Dev Team » Mon Jan 07, 2019 6:31 pm

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: ... mp_secrets

(5.01 KiB) Downloaded 40 times
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.

Posts: 2
Joined: Mon Jan 07, 2019 7:37 am

Re: Filename stamp

Post by bircn » Mon Jan 07, 2019 9:28 pm

Thanks Vasyl, works a treat.

User avatar
Site Admin
Posts: 3809
Joined: Wed Jan 03, 2018 6:52 pm

Re: Filename stamp

Post by TrackerSupp-Daniel » Mon Jan 07, 2019 9:38 pm

Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Support: <>
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

Post Reply