Filename stamp  SOLVED

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

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

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

Filename stamp

Post 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
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Filename stamp  SOLVED

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

Thanks Vasyl, works a treat.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8592
Joined: Wed Jan 03, 2018 6:52 pm

Re: Filename stamp

Post by TrackerSupp-Daniel »

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

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply