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
bircn
User
Posts: 2
Joined: Mon Jan 07, 2019 7:37 am

Filename stamp

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

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

User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1949
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:
https://acrobatusers.com/tutorials/prin ... mp_secrets

Cheers.
Attachments
551cb037-a037-4974-97c48f61b861e1d1.pdf
(5.01 KiB) Downloaded 27 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.

bircn
User
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
TrackerSupp-Daniel
Site Admin
Posts: 2738
Joined: Wed Jan 03, 2018 6:52 pm

Re: Filename stamp

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

:D
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

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

Post Reply